alchemist-interfaces / it.unibo.alchemist.core.interfaces / Simulation / nodeAdded

nodeAdded

abstract fun nodeAdded(node: Node<T>!): Unit

This method must get called in case a node is added to the environment during the simulation and after its neighborhood has been computed (or can be consistently computed by the simulated environment). This method provides dependency computation and is responsible of correctly scheduling the Node's new reactions.

Parameters

node - Node<T>!: the freshly added node

Exceptions

IllegalMonitorStateException - if the method gets called from a different thread than the simulation thread