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

cloneAction

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

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

n - Node<T>!: The node where to clone this Action

r - Reaction<T>!: The reaction to which the CURRENT action is assigned

Return
Action<T>!: the cloned action