ToggleMolecule
open class ToggleMolecule<T>(reaction: NodeReaction<T>, molecule: Molecule, concentration: T) : AbstractLocalAction<T> (source)
Treats molecule as a switch:
if it is present, then it's removed from targetNode;
otherwise, it is inserted in targetNode with the provided concentration.
Inheritors
Properties
Link copied to clipboard
The NodeReaction owning this action, hosted by targetNode.
Link copied to clipboard