NeighborHasConcentration
class NeighborHasConcentration<T>(reaction: NodeReaction<T>, val environment: Environment<T, *>, val target: Molecule, val concentration: T) : AbstractLocalCondition<T> (source)
A condition that evaluates whether at least one neighbor of a node has the specified concentration of a given molecule.
Parameters
reaction
the reaction owning this condition, whose node is evaluated.
environment
the environment containing the node and its neighborhood.
target
the molecule to check in the neighborhood
concentration
the target concentration of the molecule to be checked in the neighborhood
Type Parameters
T
the type of concentration
Constructors
Link copied to clipboard
constructor(reaction: NodeReaction<T>, environment: Environment<T, *>, target: Molecule, concentration: T)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The NodeReaction owning this condition, hosted by targetNode.
Link copied to clipboard