Package-level declarations

Types

Link copied to clipboard
abstract class AbstractCondition<T>(val reaction: Reaction<T>) : Condition<T>

Base implementation of a reactive Condition owned by reaction, independent of the kind of host.

Link copied to clipboard

Base implementation of a Condition evaluated on the node hosting its NodeReaction.

Link copied to clipboard
abstract class AbstractNodeCondition<T>(reaction: Reaction<T>, val targetNode: Node<T>) : AbstractCondition<T>

Base implementation of a Condition evaluated on a target targetNode, owned by a reaction with any host.

Link copied to clipboard

A condition that becomes valid when the concentration of target changes.

Link copied to clipboard

The condition is valid if the node contains the molecule.

Link copied to clipboard
class MoleculeHasConcentration<T>(reaction: NodeReaction<T>, molecule: Molecule, value: T) : AbstractLocalCondition<T>

Valid when the concentration of molecule in the node equals value.

Link copied to clipboard
class NeighborHasConcentration<T>(reaction: NodeReaction<T>, val environment: Environment<T, *>, val target: Molecule, val concentration: T) : AbstractLocalCondition<T>

A condition that evaluates whether at least one neighbor of a node has the specified concentration of a given molecule.

Link copied to clipboard

The condition is valid if all the other reactions having at least one condition can not execute. This condition can be used only in a single reaction per node, as multiple instances would lead to undecidable situations.