Package it.unibo.alchemist.model
Interface Action
-
- All Implemented Interfaces:
-
java.io.Serializable
public interface Action<T> implements Serializable
-
-
Method Summary
Modifier and Type Method Description abstract Action<T>
cloneAction(Node<T> node, Reaction<T> reaction)
This method allows to clone this action on a new node. abstract void
execute()
Effectively executes this action. abstract Context
getContext()
abstract ListSet<out Dependency>
getOutboundDependencies()
-
-
Method Detail
-
cloneAction
abstract Action<T> cloneAction(Node<T> node, Reaction<T> reaction)
This method allows to clone this action 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 Actionreaction
- The reaction to which the CURRENT action is assigned- Returns:
the cloned action
-
execute
abstract void execute()
Effectively executes this action.
-
getContext
abstract Context getContext()
- Returns:
The context for this action.
-
getOutboundDependencies
@Nonnull() abstract ListSet<out Dependency> getOutboundDependencies()
- Returns:
The list of the dependencies that this action generates.
-
-
-
-