Package pl.poznan.put.torsion
Class AtomPair
java.lang.Object
pl.poznan.put.torsion.AtomPair
- All Implemented Interfaces:
Comparable<AtomPair>
- Direct Known Subclasses:
ImmutableAtomPair
A pair of atoms.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BondLength
final int
protected double
distance()
final String
Generate a validation message if the distance between this atom pair is larger than 150% of the maximum expected bond length (seeBond.length(AtomType, AtomType)
).
-
Constructor Details
-
AtomPair
public AtomPair()
-
-
Method Details
-
generateValidationMessage
Generate a validation message if the distance between this atom pair is larger than 150% of the maximum expected bond length (seeBond.length(AtomType, AtomType)
).- Returns:
- A message detailing the invalid distance or empty string ("") if all is fine.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<AtomPair>
-
distance
@Lazy protected double distance() -
bondLength
-