Class AtomContactSet

    • Constructor Detail

      • AtomContactSet

        public AtomContactSet​(double cutoff)
    • Method Detail

      • hasContact

        public boolean hasContact​(Atom atom1,
                                  Atom atom2)
      • getContact

        public AtomContact getContact​(Atom atom1,
                                      Atom atom2)
        Returns the corresponding AtomContact or null if no contact exists between the 2 given atoms
        Parameters:
        atom1 -
        atom2 -
        Returns:
      • size

        public int size()
      • hasContactsWithinDistance

        public boolean hasContactsWithinDistance​(double distance)
        Returns true if at least 1 contact from this set is within the given distance. Note that if the distance given is larger than the distance cutoff used to calculate the contacts then nothing will be found.
        Parameters:
        distance -
        Returns:
        Throws:
        IllegalArgumentException - if given distance is larger than distance cutoff used for calculation of contacts
      • getContactsWithinDistance

        public List<AtomContact> getContactsWithinDistance​(double distance)
        Returns the list of contacts from this set that are within the given distance.
        Parameters:
        distance -
        Returns:
        Throws:
        IllegalArgumentException - if given distance is larger than distance cutoff used for calculation of contacts