Package org.openscience.cdk.debug
Class DebugRingSet
- java.lang.Object
-
- org.openscience.cdk.ChemObject
-
- org.openscience.cdk.AtomContainerSet
-
- org.openscience.cdk.RingSet
-
- org.openscience.cdk.debug.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:
- Serialized Form
- Source code:
- main
- Belongs to CDK module:
- datadebug
-
-
Field Summary
-
Fields inherited from class org.openscience.cdk.AtomContainerSet
atomContainerCount, atomContainers, growArraySize, multipliers
-
-
Constructor Summary
Constructors Constructor Description DebugRingSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(IRingSet ringSet)
Adds all rings of another RingSet if they are not already part of this ring set.boolean
contains(IAtom atom)
True, if at least one of the rings in the ringset contains the given atom.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 class org.openscience.cdk.AtomContainerSet
add, addAtomContainer, addAtomContainer, atomContainers, getAtomContainer, getAtomContainerCount, getMultiplier, getMultiplier, getMultipliers, growAtomContainerArray, isEmpty, removeAllAtomContainers, removeAtomContainer, removeAtomContainer, replaceAtomContainer, setMultiplier, setMultiplier, setMultipliers, sortAtomContainers, stateChanged
-
Methods inherited from class org.openscience.cdk.ChemObject
addListener, addProperties, compare, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopy
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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.ICDKObject
getBuilder
-
Methods inherited from interface org.openscience.cdk.interfaces.IChemObject
addListener, addProperties, clone, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, toString
-
-
-
-
Method Detail
-
getRings
public IRingSet getRings(IBond bond)
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.
-
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 interfaceIRingSet
- Overrides:
getConnectedRings
in classRingSet
- 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 useAtomContainerSet.addAtomContainer(org.openscience.cdk.interfaces.IAtomContainer)
-
-