removeReaction

abstract fun removeReaction(reactionToRemove: Reaction<T>)(source)

Removes a reaction from this node. The reaction is removed only in the node, but not in the it.unibo.alchemist.core.Simulation scheduler, so the scheduler will continue to execute the reaction. To remove the reaction also in the scheduler (and stop to execute it), you have to call also the method it.unibo.alchemist.core.Simulation.reactionRemoved.

Parameters

reactionToRemove

the reaction to be removed