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.
    Author:
    miguelrojasch <miguelrojasch@yahoo.es>
    See Also:
    Serialized Form
    Source code:
    main
    Belongs to CDK module:
    extra
    • Constructor Detail

      • ReactionChain

        public ReactionChain()
    • Method Detail

      • addReaction

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