Class IonicInteraction


  • public class IonicInteraction
    extends java.lang.Object
    Class representing ionic interaction.
    • Constructor Detail

      • IonicInteraction

        public IonicInteraction​(AminoAcid anionicAminoAcid,
                                AminoAcid cationicAminoAcid,
                                double distanceBtwCentroids)
        Instantiates new ionic interaction.
        Parameters:
        anionicAminoAcid - Negatively charged amino acid of interaction participant.
        cationicAminoAcid - Positively charged amino acid of interaction participant.
        distanceBtwCentroids - Distance between charged groups' centroids of interaction participants. See here.
    • Method Detail

      • getAnionicAminoAcid

        public AminoAcid getAnionicAminoAcid()
        Returns negatively charged amino acid.
        Returns:
        Negatively charged amino acid.
      • getCationicAminoAcid

        public AminoAcid getCationicAminoAcid()
        Returns positively charged amino acid.
        Returns:
        Positively charged amino acid.
      • getDistanceBtwCentroids

        public double getDistanceBtwCentroids()
        Returns distance between charged groups' centroids of interaction participants.
        Returns:
        Distance between charged groups' centroids 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