Package org.openscience.cdk
Class ReactionScheme
java.lang.Object
org.openscience.cdk.ChemObject
org.openscience.cdk.ReactionSet
org.openscience.cdk.ReactionScheme
- All Implemented Interfaces:
Serializable
,Cloneable
,ICDKObject
,IChemObject
,IChemObjectListener
,IReactionScheme
,IReactionSet
- Direct Known Subclasses:
DebugReactionScheme
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:
- Source code:
- main
- Belongs to CDK module:
- data
- Keywords:
- reaction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(IReactionScheme scheme) Add a Scheme of Reactions.clone()
Clones this ReactionScheme object and its content.int
Returns the number of ReactionScheme in this Scheme.Returns an Iterable for looping over all IMolecularScheme in this ReactionScheme.void
Removes all IReactionScheme from this chemObject.void
removeReactionScheme
(IReactionScheme scheme) Removes an IReactionScheme from this chemObject.Methods inherited from class org.openscience.cdk.ReactionSet
addReaction, getReaction, getReactionCount, isEmpty, reactions, removeAllReactions, removeReaction, removeReaction, stateChanged, toString
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.ICDKObject
getBuilder
Methods inherited from interface org.openscience.cdk.interfaces.IChemObject
addListener, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, toString
Methods inherited from interface org.openscience.cdk.interfaces.IReactionSet
addReaction, getReaction, getReactionCount, isEmpty, reactions, removeAllReactions, removeReaction, removeReaction
-
Constructor Details
-
ReactionScheme
public ReactionScheme()Constructs an empty ReactionScheme.
-
-
Method Details
-
add
Add a Scheme of Reactions.- Specified by:
add
in interfaceIReactionScheme
- Parameters:
scheme
- The IReactionScheme to include
-
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
Removes an IReactionScheme from this chemObject.- Specified by:
removeReactionScheme
in interfaceIReactionScheme
- Parameters:
scheme
- The IReactionScheme to be removed from this chemObject
-
clone
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
-