|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openscience.cdk.ChemObject
org.openscience.cdk.AtomContainerSet
org.openscience.cdk.RingSet
public class RingSet
Maintains a set of Ring objects.
| Field Summary | |
|---|---|
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? |
| Constructor Summary | |
|---|---|
RingSet()
The constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.openscience.cdk.AtomContainerSet |
|---|
add, addAtomContainer, addAtomContainer, atomContainers, getAtomContainer, getAtomContainerCount, getMultiplier, getMultiplier, getMultipliers, removeAllAtomContainers, removeAtomContainer, removeAtomContainer, replaceAtomContainer, setMultiplier, setMultiplier, setMultipliers, sortAtomContainers, stateChanged |
| Methods inherited from class org.openscience.cdk.ChemObject |
|---|
addListener, compare, getBuilder, getFlag, getFlags, getID, getListenerCount, getNotification, getProperties, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopy |
| Methods inherited from class java.lang.Object |
|---|
equals, 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.IChemObject |
|---|
addListener, getFlag, getFlags, getID, getListenerCount, getNotification, getProperties, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty |
| Methods inherited from interface org.openscience.cdk.interfaces.ICDKObject |
|---|
getBuilder |
| Field Detail |
|---|
public static final int LARGE_FIRST
public static final int SMALL_FIRST
| Constructor Detail |
|---|
public RingSet()
| Method Detail |
|---|
public IRingSet getRings(IBond bond)
getRings in interface IRingSetbond - The bond to be checked
public IRingSet getRings(IAtom atom)
getRings in interface IRingSetatom - The atom to be checked
public IRingSet getConnectedRings(IRing ring)
getConnectedRings in interface IRingSetring - A ring with which all return rings must share one or more atoms
public void add(IRingSet ringSet)
AtomContainerSet.addAtomContainer(org.openscience.cdk.interfaces.IAtomContainer)
add in interface IRingSetringSet - the ring set to be united with this one.public boolean contains(IAtom atom)
contains in interface IRingSetatom - Atom to check
public boolean contains(IAtomContainer ring)
contains in interface IRingSetring - The ring to check
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 AtomContainerSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||