MoleculeHasConcentration

class MoleculeHasConcentration<T> : AbstractCondition<T>

A condition that is valid iff a molecule has exactly the desired concentration.

Parameters

<T>

concentration type

Constructors

Link copied to clipboard
open fun MoleculeHasConcentration(node: Node<T>, molecule: Molecule, value: T)

Functions

Link copied to clipboard
open fun cloneCondition(node: Node<T>, reaction: Reaction<T>): Condition<T>
How to override: create a new action of your concrete subtype.
abstract fun cloneCondition(p: Node<T>, p1: Reaction<T>): Condition<T>
Link copied to clipboard
open fun getContext(): Context
Link copied to clipboard
fun getInboundDependencies(): ListSet<out Dependency>
How to override: if you intend your condition to be potentially changed by any change in the context, return null.
abstract fun getInboundDependencies(): ListSet<out Dependency>
Link copied to clipboard
open fun getNode(): Node<T>
Override if your Condition can return a more specific type of node.
abstract fun getNode(): Node<T>
Link copied to clipboard
open fun getPropensityContribution(): Double
Link copied to clipboard
open fun isValid(): Boolean
Link copied to clipboard
open fun reactionReady()
Link copied to clipboard
open fun toString(): String