alchemist-interfaces / it.unibo.alchemist.model.interfaces / Environment / addNode

addNode

abstract fun addNode(node: Node<T>!, p: P): Unit

This method allows to add a new node to this environment. The environment is responsible to call the right method of the simulation in order to ensure that the reaction is properly scheduled.

Parameters

node - Node<T>!: The node to add

p - P: The position where to place it