Toggle Molecule
open class ToggleMolecule<T>(node: Node<T>, molecule: Molecule, concentration: T) : AbstractAction<T>
Content copied to clipboard
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.
Constructors
Functions
Link copied to clipboard
open override fun cloneAction(node: Node<T>, reaction: Reaction<T>): ToggleMolecule<T>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard