nodeRemoved

abstract fun nodeRemoved(node: Node<T>, oldNeighborhood: Neighborhood<T>)

This method must get called in case a node is removed from 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 removing the Node's reactions from the scheduler.

Parameters

node

the freshly removed node

oldNeighborhood

the neighborhood of the node as it was before it was removed (used to calculate reverse dependencies)