alchemist-interfaces / it.unibo.alchemist.model.interfaces / Action

Action

interface Action<T : Any!> : Serializable

Functions

cloneAction

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.

abstract fun cloneAction(n: Node<T>!, r: Reaction<T>!): Action<T>!

execute

Effectively executes this action.

abstract fun execute(): Unit

getContext

abstract fun getContext(): Context!

getOutboundDependencies

abstract fun getOutboundDependencies(): ListSet<out Dependency!>!