Class DebugRingSet

    • Constructor Detail

      • DebugRingSet

        public DebugRingSet()
    • Method Detail

      • getRings

        public IRingSet getRings​(IBond bond)
        Returns a vector of all rings that this bond is part of.
        Specified by:
        getRings in interface IRingSet
        Overrides:
        getRings in class RingSet
        Parameters:
        bond - The bond to be checked
        Returns:
        A vector of all rings that this bond is part of
      • getRings

        public IRingSet getRings​(IAtom atom)
        Returns a vector of all rings that this atom is part of.
        Specified by:
        getRings in interface IRingSet
        Overrides:
        getRings in class RingSet
        Parameters:
        atom - The atom to be checked
        Returns:
        A vector of all rings that this bond is part of
      • getConnectedRings

        public IRingSet getConnectedRings​(IRing ring)
        Returns all the rings in the RingSet that share one or more atoms with a given ring.
        Specified by:
        getConnectedRings in interface IRingSet
        Overrides:
        getConnectedRings in class RingSet
        Parameters:
        ring - A ring with which all return rings must share one or more atoms
        Returns:
        All the rings that share one or more atoms with a given ring.
      • contains

        public boolean contains​(IAtom atom)
        True, if at least one of the rings in the ringset contains the given atom.
        Specified by:
        contains in interface IRingSet
        Overrides:
        contains in class RingSet
        Parameters:
        atom - Atom to check
        Returns:
        true, if the ringset contains the atom