Interface IReactionSet

    • Method Detail

      • addReaction

        void addReaction​(IReaction reaction)
        Adds an reaction to this container.
        Parameters:
        reaction - The reaction to be added to this container
      • removeReaction

        void removeReaction​(int pos)
        Remove a reaction from this set.
        Parameters:
        pos - The position of the reaction to be removed.
      • getReaction

        IReaction getReaction​(int number)
        Returns the Reaction at position number in the container.
        Parameters:
        number - The position of the Reaction to be returned
        Returns:
        The Reaction at position number
      • getReactionCount

        int getReactionCount()
        Returns the number of Reactions in this Container.
        Returns:
        The number of Reactions in this Container
      • removeAllReactions

        void removeAllReactions()
        Removes all reactions from this set.
      • removeReaction

        void removeReaction​(IReaction relevantReaction)
        Removes all instances of a reaction from this IReactionSet.
        Parameters:
        relevantReaction - the reaction to remove
      • isEmpty

        boolean isEmpty()
        Returns true if this IReactionSet is empty.
        Returns:
        a boolean indicating if this ring set no reactions