public class RingSet extends AtomContainerSet implements Serializable, IRingSet, Cloneable
| Modifier and Type | Field and Description |
|---|---|
static int |
LARGE_FIRST
Flag to denote that the set is order with the largest ring first?
|
static int |
SMALL_FIRST
Flag to denote that the set is order with the smallest ring first?
|
atomContainerCount, atomContainers, growArraySize, multipliers| Constructor and Description |
|---|
RingSet()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(IRingSet ringSet)
Adds all rings of another RingSet if they are not already part of this ring set.
|
Object |
clone()
Clones this
RingSet including the Rings. |
boolean |
contains(IAtom atom)
True, if at least one of the rings in the ringset contains
the given atom.
|
boolean |
contains(IAtomContainer ring)
Checks for presence of a ring in this RingSet.
|
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.
|
String |
toString()
Returns the String representation of this RingSet.
|
add, addAtomContainer, addAtomContainer, atomContainers, getAtomContainer, getAtomContainerCount, getMultiplier, getMultiplier, getMultipliers, growAtomContainerArray, isEmpty, removeAllAtomContainers, removeAtomContainer, removeAtomContainer, replaceAtomContainer, setMultiplier, setMultiplier, setMultipliers, sortAtomContainers, stateChangedaddListener, addProperties, compare, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addAtomContainer, addAtomContainer, atomContainers, getAtomContainer, getAtomContainerCount, getMultiplier, getMultiplier, getMultipliers, removeAllAtomContainers, removeAtomContainer, removeAtomContainer, replaceAtomContainer, setMultiplier, setMultiplier, setMultipliers, sortAtomContainersaddListener, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setPropertygetBuilderpublic static final int LARGE_FIRST
public static final int SMALL_FIRST
public IRingSet getRings(IBond bond)
public IRingSet getRings(IAtom atom)
public IRingSet getConnectedRings(IRing ring)
getConnectedRings in interface IRingSetring - A ring with which all return rings must share one or more atomspublic void add(IRingSet ringSet)
AtomContainerSet.addAtomContainer(org.openscience.cdk.interfaces.IAtomContainer)public boolean contains(IAtom atom)
public boolean contains(IAtomContainer ring)
public Object clone() throws CloneNotSupportedException
RingSet including the Rings.clone in interface IChemObjectclone in class AtomContainerSetCloneNotSupportedException - if the IChemObject cannot be clonedpublic String toString()
toString in interface IChemObjecttoString in class AtomContainerSetCopyright © 2021. All rights reserved.