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
public class ReactionChain extends ReactionSet
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:
- Serialized Form
- Source code:
- main
- Belongs to CDK module:
- extra
-
-
Constructor Summary
Constructors Constructor Description ReactionChain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addReaction(IReaction reaction, int position)
Added a IReaction for this chain in position.IReaction
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
-
-
-
-
Method Detail
-
addReaction
public void addReaction(IReaction reaction, int position)
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
public int getReactionStep(IReaction reaction)
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
public IReaction getReaction(int position)
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
-
-