Interface Reaction

  • All Implemented Interfaces:
    it.unibo.alchemist.model.Actionable , java.io.Serializable , kotlin.Comparable

    
    public interface Reaction<T extends Object>
     implements Actionable<T>
                        
    • 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
    • Method Summary

      Modifier and Type Method Description
      abstract Reaction<T> cloneOnNewNode(Node<T> node, Time currentTime) This method allows to clone this reaction on a new node.
      abstract Context getInputContext() The widest Context among Conditions, namely the smallest Context in which the Reaction can read informations.
      abstract Context getOutputContext() The widest Context among Actions, namely the smallest context in which the Reaction can do modifications.
      abstract Node<T> getNode()
      • Methods inherited from class it.unibo.alchemist.model.Actionable

        canExecute, execute, getActions, getConditions, getInboundDependencies, getOutboundDependencies, getRate, getTau, getTimeDistribution, initializationComplete, setActions, setConditions, update
      • Methods inherited from class kotlin.Comparable

        compareTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • cloneOnNewNode

         abstract Reaction<T> cloneOnNewNode(Node<T> node, Time currentTime)

        This method allows to clone this reaction on a new node. It may result useful to support runtime creation of nodes with the same reaction programming, e.g. for morphogenesis.

        Parameters:
        node - The node where to clone this Reaction
        currentTime - the time at which the clone is created (required to correctly clone the TimeDistributions)
        Returns:

        the cloned action