Class ToggleMolecule

  • All Implemented Interfaces:
    it.unibo.alchemist.model.Action , java.io.Serializable

    
    public class ToggleMolecule<T extends Object>
    extends AbstractAction<T>
                        

    Treats molecule as a switch:

    • if it is present, then it's removed from node;

    • otherwise, it is inserted in node with the provided concentration.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      ToggleMolecule<T> cloneAction(Node<T> node, Reaction<T> reaction)
      Unit execute() Toggles concentration.
      Context getContext()
      • Methods inherited from class it.unibo.alchemist.model.actions.AbstractAction

        getOutboundDependencies, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait