cloneOnNewNode

open override fun cloneOnNewNode(node: Node<T>): ConditionalEvent<T>

Clones this reaction's program on a new node, for example when nodes are created at runtime.

The clone must be returned uninitialized. A TimeDistributedReaction receives a fresh TimeDistribution and schedule. The engine subsequently initializes the clone, and no consumed occurrence or residual delay is resurrected. Host-neutral reactions are deliberately not cloned with a node. The clone starts from the time of its initialization: the current time of the simulation, or Time.ZERO if none is running.

Return

the cloned reaction

Parameters

node

The node where to clone this Reaction