Class HydrophobicInteraction
- java.lang.Object
-
- io.github.WeronikaJargielo.protein_interaction_finder.HydrophobicInteraction
-
public final class HydrophobicInteraction extends java.lang.ObjectClass representing hydrophobic interaction.
-
-
Constructor Summary
Constructors Constructor Description HydrophobicInteraction(AminoAcid firstInteractee, AminoAcid secondInteractee, double distanceBtwCAs)Instantiates new hydrophobic interaction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)doublegetDistanceBtwCAs()Returns distance between CA atoms of interaction participants.AminoAcidgetFirstInteractee()Returns amino acid of first interaction participant.AminoAcidgetSecondInteractee()Returns amino acid of second interaction participant.inthashCode()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-