ToggleMolecule
open class ToggleMolecule<T>(node: Node<T>, molecule: Molecule, concentration: T) : AbstractAction<T>
Treats molecule as a switch:
if it is present, then it's removed from node;
otherwise, it is inserted in node with the provided concentration.
Inheritors
Properties
Link copied to clipboard
override val outboundDependencies: @EnhancedNullability org/danilopianini/util/ListSet<out it/unibo/alchemist/model/Dependency!>