Class DebugRingSet

All Implemented Interfaces:
Serializable, Cloneable, IAtomContainerSet, ICDKObject, IChemObject, IChemObjectListener, IRingSet

public class DebugRingSet extends RingSet implements IRingSet
Debugging data class.
Author:
egonw
See Also:
Source code:
main
Belongs to CDK module:
datadebug
  • Constructor Details

    • DebugRingSet

      public DebugRingSet()
  • Method Details

    • 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.
    • add

      public void add(IRingSet ringSet)
      Adds all rings of another RingSet if they are not already part of this ring set. If you want to add a single ring to the set use AtomContainerSet.addAtomContainer(org.openscience.cdk.interfaces.IAtomContainer)
      Specified by:
      add in interface IRingSet
      Overrides:
      add in class RingSet
      Parameters:
      ringSet - the ring set to be united with this one.
    • 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