org.openscience.cdk.interfaces
Interface IRingSet

All Superinterfaces:
Cloneable, IAtomContainerSet, ICDKObject, IChemObject
All Known Implementing Classes:
DebugRingSet, RingSet, RingSet

public interface IRingSet
extends IAtomContainerSet

Maintains a set of Ring objects.

Keywords:
ring, set of
Belongs to CDK module:
interfaces
Source code:
cdk-1.4.x

Method Summary
 void add(IRingSet ringSet)
          Adds all rings of another RingSet if they are not allready part of this ring set.
 boolean contains(IAtom atom)
          True, if at least one of the rings in the ringset contains the given atom.
 boolean contains(IAtomContainer container)
          True, if this set contains the IAtomContainer.
 IRingSet getConnectedRings(IRing ring)
          Returns all the rings in the RingSet that share one or more atoms with a given ring.
 IRingSet getRings(IAtom atom)
          Returns a vector of all rings that this atom is part of.
 IRingSet getRings(IBond bond)
          Returns a vector of all rings that this bond is part of.
 
Methods inherited from interface org.openscience.cdk.interfaces.IAtomContainerSet
add, addAtomContainer, addAtomContainer, atomContainers, getAtomContainer, getAtomContainerCount, getMultiplier, getMultiplier, getMultipliers, removeAllAtomContainers, removeAtomContainer, removeAtomContainer, replaceAtomContainer, setMultiplier, setMultiplier, setMultipliers, sortAtomContainers
 
Methods inherited from interface org.openscience.cdk.interfaces.IChemObject
addListener, clone, getFlag, getFlags, getID, getListenerCount, getNotification, getProperties, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, toString
 
Methods inherited from interface org.openscience.cdk.interfaces.ICDKObject
getBuilder
 

Method Detail

getRings

IRingSet getRings(IBond bond)
Returns a vector of all rings that this bond is part of.

Parameters:
bond - The bond to be checked
Returns:
A vector of all rings that this bond is part of

getRings

IRingSet getRings(IAtom atom)
Returns a vector of all rings that this atom is part of.

Parameters:
atom - The atom to be checked
Returns:
A vector of all rings that this bond is part of

getConnectedRings

IRingSet getConnectedRings(IRing ring)
Returns all the rings in the RingSet that share one or more atoms with a given ring.

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

void add(IRingSet ringSet)
Adds all rings of another RingSet if they are not allready part of this ring set. If you want to add a single ring to the set use IAtomContainerSet.addAtomContainer(org.openscience.cdk.interfaces.IAtomContainer)

Parameters:
ringSet - the ring set to be united with this one.

contains

boolean contains(IAtom atom)
True, if at least one of the rings in the ringset contains the given atom.

Parameters:
atom - IAtom to check
Returns:
true, if the ringset contains the atom

contains

boolean contains(IAtomContainer container)
True, if this set contains the IAtomContainer.

Parameters:
container - IAtomContainer to check
Returns:
true, if the ringset contains the container