Class IonicInteraction
- java.lang.Object
-
- io.github.WeronikaJargielo.protein_interaction_finder.IonicInteraction
-
public class IonicInteraction extends java.lang.Object
Class representing ionic interaction.
-
-
Constructor Summary
Constructors Constructor Description IonicInteraction(AminoAcid anionicAminoAcid, AminoAcid cationicAminoAcid, double distanceBtwCentroids)
Instantiates new ionic interaction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
AminoAcid
getAnionicAminoAcid()
Returns negatively charged amino acid.AminoAcid
getCationicAminoAcid()
Returns positively charged amino acid.double
getDistanceBtwCentroids()
Returns distance between charged groups' centroids of interaction participants.int
hashCode()
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-