Class HydrophobicInteraction


  • public final class HydrophobicInteraction
    extends java.lang.Object
    Class representing hydrophobic interaction.
    • Constructor Detail

      • HydrophobicInteraction

        public HydrophobicInteraction​(AminoAcid firstInteractee,
                                      AminoAcid secondInteractee,
                                      double distanceBtwCAs)
        Instantiates new hydrophobic interaction.
        Parameters:
        firstInteractee - Hydrophobic amino acid of first interaction participant.
        secondInteractee - Hydrophobic amino acid of second interaction participant.
        distanceBtwCAs - Distance between CA atoms of interaction participants.
    • Method Detail

      • getFirstInteractee

        public AminoAcid getFirstInteractee()
        Returns amino acid of first interaction participant.
        Returns:
        Amino acid of first interaction participant.
      • getSecondInteractee

        public AminoAcid getSecondInteractee()
        Returns amino acid of second interaction participant.
        Returns:
        Amino acid of second interaction participant.
      • getDistanceBtwCAs

        public double getDistanceBtwCAs()
        Returns distance between CA atoms of interaction participants.
        Returns:
        Distance between CA atoms of interaction participants.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object