Package org.openscience.cdk.reaction
Class ReactionChain
java.lang.Object
org.openscience.cdk.ChemObject
org.openscience.cdk.ReactionSet
org.openscience.cdk.reaction.ReactionChain
- All Implemented Interfaces:
Serializable
,Cloneable
,ICDKObject
,IChemObject
,IChemObjectListener
,IReactionSet
Classes that extends the definition of reaction to a chain reaction.
This is designed to contains a set of reactions which are lineal linked as
chain. That would mean no exist branches or cycles and in this concept
you have a start reaction and final reaction. Each reaction is included
in a step of the chain.
- Author:
- miguelrojasch <miguelrojasch@yahoo.es>
- See Also:
- Source code:
- main
- Belongs to CDK module:
- extra
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addReaction
(IReaction reaction, int position) Added a IReaction for this chain in position.getReaction
(int position) Get the reaction of this chain reaction object at the position.int
getReactionStep
(IReaction reaction) Get the position of the reaction into this chain reaction object.Methods inherited from class org.openscience.cdk.ReactionSet
addReaction, clone, 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
-
Constructor Details
-
ReactionChain
public ReactionChain()
-
-
Method Details
-
addReaction
Added a IReaction for this chain in position.- Parameters:
reaction
- The IReactionposition
- The position in this chain where the reaction is to be inserted
-
getReactionStep
Get the position of the reaction into this chain reaction object.- Parameters:
reaction
- The IReaction to look at- Returns:
- The position of the IReaction in this chain
-
getReaction
Get the reaction of this chain reaction object at the position.- Specified by:
getReaction
in interfaceIReactionSet
- Overrides:
getReaction
in classReactionSet
- Parameters:
position
- The position of the IReaction in this chain to look for- Returns:
- Reaction The IReaction to look at
-