alchemist-interfaces / it.unibo.alchemist.model.interfaces / Node / cloneNode

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.

Parameters

currentTime - Time!: the time at which the cloning operation happens

Exceptions

UnsupportedOperationException - if the implementation does not support node cloning.

Return
Node<T>!: A new Node which is a clone of the current one.