Package it.unibo.alchemist.model
Interface Reaction
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Actionable
,java.io.Serializable
,kotlin.Comparable
public interface Reaction<T extends Object> implements Actionable<T>
-
-
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
-
-
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 ReactioncurrentTime
- the time at which the clone is created (required to correctly clone the TimeDistributions)- Returns:
the cloned action
-
getInputContext
abstract Context getInputContext()
The widest Context among Conditions, namely the smallest Context in which the Reaction can read informations.
-
getOutputContext
abstract Context getOutputContext()
The widest Context among Actions, namely the smallest context in which the Reaction can do modifications.
-
-
-
-