Package org.openscience.cdk.silent
Class ReactionScheme
- java.lang.Object
-
- org.openscience.cdk.silent.ChemObject
-
- org.openscience.cdk.silent.ReactionSet
-
- org.openscience.cdk.silent.ReactionScheme
-
- All Implemented Interfaces:
Serializable
,Cloneable
,ICDKObject
,IChemObject
,IChemObjectListener
,IReactionScheme
,IReactionSet
public class ReactionScheme extends ReactionSet implements IReactionScheme
Classes that extends the definition of reaction to a scheme. This is designed to contain a set of reactions which are linked in some way but without hard coded semantics.- Author:
- miguelrojasch <miguelrojasch@yahoo.es>
- See Also:
- Serialized Form
- Belongs to CDK module:
- silent
- Keywords:
- reaction
-
-
Field Summary
-
Fields inherited from interface org.openscience.cdk.interfaces.IChemObject
ALIPHATIC, AROMATIC, CONJUGATED, HYDROGEN_BOND_ACCEPTOR, HYDROGEN_BOND_DONOR, IN_RING, MAPPED, NOT_IN_RING, PLACED, REACTIVE_CENTER, SINGLE_OR_DOUBLE, TYPEABLE, VISITED
-
-
Constructor Summary
Constructors Constructor Description ReactionScheme()
Constructs an empty ReactionScheme.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(IReactionScheme scheme)
Add a Scheme of Reactions.Object
clone()
Clones this ReactionScheme object and its content.int
getReactionSchemeCount()
Returns the number of ReactionScheme in this Scheme.Iterable<IReactionScheme>
reactionSchemes()
Returns an Iterable for looping over all IMolecularScheme in this ReactionScheme.void
removeAllReactionSchemes()
Removes all IReactionScheme from this chemObject.void
removeReactionScheme(IReactionScheme scheme)
Removes an IReactionScheme from this chemObject.-
Methods inherited from class org.openscience.cdk.silent.ReactionSet
addReaction, getReaction, getReactionCount, isEmpty, reactions, removeAllReactions, removeReaction, removeReaction, stateChanged, toString
-
Methods 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, 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.ICDKObject
getBuilder
-
Methods 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, setProperty, toString
-
Methods inherited from interface org.openscience.cdk.interfaces.IReactionSet
addReaction, getReaction, getReactionCount, isEmpty, reactions, removeAllReactions, removeReaction, removeReaction
-
-
-
-
Method Detail
-
add
public void add(IReactionScheme scheme)
Add a Scheme of Reactions.- Specified by:
add
in interfaceIReactionScheme
- Parameters:
scheme
- The IReactionScheme to include
-
reactionSchemes
public Iterable<IReactionScheme> reactionSchemes()
Returns an Iterable for looping over all IMolecularScheme in this ReactionScheme.- Specified by:
reactionSchemes
in interfaceIReactionScheme
- Returns:
- An Iterable with the IMolecularScheme in this ReactionScheme
-
getReactionSchemeCount
public int getReactionSchemeCount()
Returns the number of ReactionScheme in this Scheme.- Specified by:
getReactionSchemeCount
in interfaceIReactionScheme
- Returns:
- The number of ReactionScheme in this Scheme
-
removeAllReactionSchemes
public void removeAllReactionSchemes()
Removes all IReactionScheme from this chemObject.- Specified by:
removeAllReactionSchemes
in interfaceIReactionScheme
-
removeReactionScheme
public void removeReactionScheme(IReactionScheme scheme)
Removes an IReactionScheme from this chemObject.- Specified by:
removeReactionScheme
in interfaceIReactionScheme
- Parameters:
scheme
- The IReactionScheme to be removed from this chemObject
-
clone
public Object clone() throws CloneNotSupportedException
Clones this ReactionScheme object and its content.- Specified by:
clone
in interfaceIChemObject
- Specified by:
clone
in interfaceIReactionScheme
- Overrides:
clone
in classReactionSet
- Returns:
- The cloned object
- Throws:
CloneNotSupportedException
- if the IChemObject cannot be cloned
-
-