GenericMoleculePresent

This class implements a condition which checks if a molecule is present or not.

Parameters

<T>

the concentration type

Inheritors

Constructors

Link copied to clipboard
constructor(n: Node<T>, mol: Molecule, quantity: T)
Builds a new condition, which checks if the molecule exists or not inside the node n.

Properties

Link copied to clipboard
Link copied to clipboard
val node: Node<T>

Functions

Link copied to clipboard
abstract fun cloneCondition(node: Node<T>, reaction: Reaction<T>): Condition<T>
This method allows to clone this action on a new node.
open fun cloneCondition(node: Node<T>, reaction: Reaction<T>): GenericMoleculePresent<T>
How to override: create a new action of your concrete subtype.
Link copied to clipboard
open fun getContext(): Context
Link copied to clipboard
fun getInboundDependencies(): ListSet<? extends Dependency>
How to override: if you intend your condition to be potentially changed by any change in the context, return null.
Link copied to clipboard
Propensity influence is computed through the binomial coefficient.
Link copied to clipboard
open fun getQuantity(): T
Allows to access the threshold.
Link copied to clipboard
open fun isValid(): Boolean
Link copied to clipboard
open fun reactionReady()
This method is called by the Simulation once the Reaction whose this Condition belongs to is the next one to be executed, and all its conditions passed (namely, the next operation will be the reaction execution).
Link copied to clipboard
open fun toString(): String