alchemist-interfaces / it.unibo.alchemist.model.interfaces / Reaction / cloneOnNewNode

cloneOnNewNode

abstract fun cloneOnNewNode(n: Node<T>!, currentTime: Time!): Reaction<T>!

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

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

currentTime - Time!: the time at which the clone is created (required to correctly clone the TimeDistributions)

Return
Reaction<T>!: the cloned action