AbstractNonPropensityContributingCondition

This condition does not influence the reaction propensity, it contributes respectively with 1.0 in case it can execute, or with 0.0 in case it cannot.

Inheritors

Constructors

constructor(node: Node<T>)

Properties

Link copied to clipboard
val node: Node<T>

Functions

Link copied to clipboard
open override fun cloneCondition(node: Node<T>, reaction: Reaction<T>): Condition<T>

This method allows to clone this action on a new node. It may result useful to support runtime creation of nodes with the same reaction programming, e.g. for morphogenesis.

Link copied to clipboard
abstract fun getContext(): Context
Link copied to clipboard
override fun getInboundDependencies(): ListSet
Link copied to clipboard

This method is a support for the propensity calculation inside the Reactions. It allows this condition to influence the rate calculation in some way. It's up to the reaction to decide whether to use or not this information, and how.

Link copied to clipboard
abstract 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). It can be used to perform sanity checks, as well as for registering the status of the simulated world for future comparisons. Defaults to an empty implementation.

Link copied to clipboard
open override fun toString(): String