addReaction

abstract fun addReaction(r: Reaction<T>)

Adds a reaction to this node. The reaction is added only in the node, but not in the Simulation scheduler, so it will never be executed. To add the reaction also in the scheduler (and start to execute it), you have to call also the method reactionAdded.

Parameters

r

the reaction to be added