Class AtomPair

java.lang.Object
pl.poznan.put.torsion.AtomPair
All Implemented Interfaces:
Comparable<AtomPair>
Direct Known Subclasses:
ImmutableAtomPair

@Immutable public abstract class AtomPair extends Object implements Comparable<AtomPair>
A pair of atoms.
  • Constructor Details

    • AtomPair

      public AtomPair()
  • Method Details

    • generateValidationMessage

      public final String generateValidationMessage()
      Generate a validation message if the distance between this atom pair is larger than 150% of the maximum expected bond length (see Bond.length(AtomType, AtomType)).
      Returns:
      A message detailing the invalid distance or empty string ("") if all is fine.
    • compareTo

      public final int compareTo(AtomPair t)
      Specified by:
      compareTo in interface Comparable<AtomPair>
    • distance

      @Lazy protected double distance()
    • bondLength

      @Lazy protected BondLength bondLength()