BiomolPresentInEnv

class BiomolPresentInEnv<P : Position<out P>>(environment: Environment<Double, P>, reaction: NodeReaction<Double>, biomolecule: Biomolecule, requiredQuantity: Double) : GenericMoleculePresent<Double>

A condition requiring requiredQuantity units of biomolecule in the surrounding environment.

Constructors

Link copied to clipboard
constructor(environment: Environment<Double, P>, reaction: NodeReaction<Double>, biomolecule: Biomolecule, requiredQuantity: Double)

Properties

Link copied to clipboard
override val isValid: Observable<Boolean>

The live validity of this condition.

Link copied to clipboard
open override val quantity: Observable<Double>

Observable quantity consumed by the owning biochemical reaction's mass-action law.

Link copied to clipboard

The NodeReaction owning this condition, hosted by targetNode.

Link copied to clipboard

Required quantity configured for this condition.

Link copied to clipboard

Functions

Link copied to clipboard

Signals that the owning reaction is about to fire. Used to implement conditions latched to changes that occur in-between reaction executions.

Link copied to clipboard
override fun cloneCondition(newReaction: Reaction<Double>): Condition<Double>

Creates an equivalent condition owned by newReaction, such as a reaction cloned onto a new node. A condition targeting the host of its reaction targets the host of newReaction, which must then be a Node; a condition targeting any other node keeps its target.

Link copied to clipboard
open override fun dispose()

Disposes and releases the resources held by this object.

Link copied to clipboard

Molecule whose quantity this condition observes.

Link copied to clipboard
infix fun Condition<*>.shouldEqual(other: Condition<*>)
Link copied to clipboard
open override fun toString(): String