Package 

Interface Node

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • addReaction

         abstract void addReaction(Reaction<T> r)

        Adds a reaction to this node. The reaction is added only in the node, but not in the Simulation scheduler, so it will never be executed. To add the reaction also in the scheduler (and start to execute it), you have to call also the method reactionAdded.

        Parameters:
        r - the reaction to be added
      • cloneNode

         abstract Node<T> cloneNode(Time currentTime)

        Creates a new Node which is a clone of the current Node. The new Node will have all the current Node's properties, such as reactions and molecules, but it will also have a different ID.

        Parameters:
        currentTime - the time at which the cloning operation happens
      • contains

         abstract boolean contains(Molecule mol)

        Tests whether a node contains a Molecule.

        Parameters:
        mol - the molecule to check
      • getConcentration

         abstract T getConcentration(Molecule mol)

        Calculates the concentration of a molecule.

        Parameters:
        mol - the molecule whose concentration will be returned
      • getId

         abstract int getId()
      • removeReaction

         abstract void removeReaction(Reaction<T> r)

        Removes a reaction from this node. The reaction is removed only in the node, but not in the Simulation scheduler, so the scheduler will continue to execute the reaction. To remove the reaction also in the scheduler (and stop to execute it), you have to call also the method reactionRemoved.

        Parameters:
        r - the reaction to be removed
      • setConcentration

         abstract void setConcentration(Molecule mol, T c)

        Sets the concentration of mol to c.

        Parameters:
        mol - the molecule you want to set the concentration
        c - the concentration you want for mol