Class 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.
miguelrojasch <>
See Also:
Source code:
Belongs to CDK module:
  • Constructor Details

    • ReactionChain

      public ReactionChain()
  • Method Details

    • addReaction

      public void addReaction(IReaction reaction, int position)
      Added a IReaction for this chain in position.
      reaction - The IReaction
      position - 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.
      reaction - The IReaction to look at
      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 interface IReactionSet
      getReaction in class ReactionSet
      position - The position of the IReaction in this chain to look for
      Reaction The IReaction to look at