cloneNode

abstract fun cloneNode(currentTime: Time): Node<T>

Creates a new Node which is a clone of the current Node. The new Node will have all the current Node's properties, such as reactions and molecules, but it will also have a different ID.

Return

A new Node which is a clone of the current one.

Parameters

currentTime

the time at which the cloning operation happens

Throws

if the implementation does not support node cloning.