Package org.openscience.cdk.silent
Class RingSet
java.lang.Object
org.openscience.cdk.silent.ChemObject
org.openscience.cdk.silent.AtomContainerSet
org.openscience.cdk.silent.RingSet
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<IAtomContainer>,IAtomContainerSet,ICDKObject,IChemObject,IChemObjectListener,IRingSet
Maintains a set of Ring objects.
- See Also:
- Keywords:
- ring, set of
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFlag to denote that the set is order with the largest ring first?static final intFlag to denote that the set is order with the smallest ring first?Fields inherited from class org.openscience.cdk.silent.AtomContainerSet
atomContainerCount, atomContainers, growArraySize, multipliersFields inherited from interface org.openscience.cdk.interfaces.IChemObject
ALIPHATIC, AROMATIC, CONJUGATED, HYDROGEN_BOND_ACCEPTOR, HYDROGEN_BOND_DONOR, IN_RING, MAPPED, MARKUSH, NOT_IN_RING, PLACED, REACTIVE_CENTER, SINGLE_OR_DOUBLE, TYPEABLE, VISITED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds all rings of another RingSet if they are not already part of this ring set.clone()Clones thisRingSetincluding the Rings.booleanTrue, if at least one of the rings in the ringset contains the given atom.booleancontains(IAtomContainer ring) Checks for presence of a ring in this RingSet.getConnectedRings(IRing ring) Returns all the rings in the RingSet that share one or more atoms with a given ring.Returns a vector of all rings that this atom is part of.Returns a vector of all rings that this bond is part of.toString()Returns the String representation of this RingSet.Methods inherited from class org.openscience.cdk.silent.AtomContainerSet
add, addAtomContainer, addAtomContainer, atomContainers, getAtomContainer, getAtomContainerCount, getMultiplier, getMultiplier, getMultipliers, growAtomContainerArray, isEmpty, removeAllAtomContainers, removeAtomContainer, removeAtomContainer, replaceAtomContainer, setMultiplier, setMultiplier, setMultipliers, sortAtomContainers, stateChangedMethods inherited from class org.openscience.cdk.silent.ChemObject
addListener, addProperties, clear, compare, flags, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, is, notifyChanged, notifyChanged, removeListener, removeProperty, set, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopyMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openscience.cdk.interfaces.IAtomContainerSet
add, addAtomContainer, addAtomContainer, atomContainers, getAtomContainer, getAtomContainerCount, getMultiplier, getMultiplier, getMultipliers, iterator, removeAllAtomContainers, removeAtomContainer, removeAtomContainer, replaceAtomContainer, setMultiplier, setMultiplier, setMultipliers, sortAtomContainersMethods inherited from interface org.openscience.cdk.interfaces.ICDKObject
getBuilderMethods inherited from interface org.openscience.cdk.interfaces.IChemObject
addListener, addProperties, clear, flags, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, is, notifyChanged, notifyChanged, removeListener, removeProperty, set, setFlag, setFlags, setID, setNotification, setProperties, setPropertyMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
LARGE_FIRST
public static final int LARGE_FIRSTFlag to denote that the set is order with the largest ring first?- See Also:
-
SMALL_FIRST
public static final int SMALL_FIRSTFlag to denote that the set is order with the smallest ring first?- See Also:
-
-
Constructor Details
-
RingSet
public RingSet()The constructor.
-
-
Method Details
-
getRings
Returns a vector of all rings that this bond is part of. -
getRings
Returns a vector of all rings that this atom is part of. -
getConnectedRings
Returns all the rings in the RingSet that share one or more atoms with a given ring.- Specified by:
getConnectedRingsin interfaceIRingSet- 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
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) -
contains
True, if at least one of the rings in the ringset contains the given atom. -
contains
Checks for presence of a ring in this RingSet. -
clone
Clones thisRingSetincluding the Rings.- Specified by:
clonein interfaceIChemObject- Overrides:
clonein classAtomContainerSet- Returns:
- The cloned object
- Throws:
CloneNotSupportedException- if the IChemObject cannot be cloned
-
toString
Returns the String representation of this RingSet.- Specified by:
toStringin interfaceIChemObject- Overrides:
toStringin classAtomContainerSet- Returns:
- The String representation of this RingSet
-