AbstractReaction

abstract class AbstractReaction<T> : Reaction<T>

The type which describes the concentration of a molecule This class offers a partial implementation of Reaction. In particular, it allows to write new reaction specifying only which distribution time to adopt

Parameters

<T>

concentration type

Constructors

Link copied to clipboard
open fun AbstractReaction(node: Node<T>, timeDistribution: TimeDistribution<T>)
Builds a new reaction, starting at time t.

Functions

Link copied to clipboard
open fun canExecute(): Boolean
The default implementation verifies if all the conditions are valid.
Link copied to clipboard
abstract fun cloneOnNewNode(p: Node<T>, p1: Time): Reaction<T>
Link copied to clipboard
fun compareTo(o: Reaction<T>): Int
Link copied to clipboard
fun equals(o: Any): Boolean
Link copied to clipboard
open fun execute()
The default execution iterates all the actions in order and executes them.
Link copied to clipboard
abstract fun getActions(): List<Action<T>>
Link copied to clipboard
abstract fun getConditions(): List<Condition<T>>
Link copied to clipboard
fun getInboundDependencies(): ListSet<Dependency>
Link copied to clipboard
fun getInputContext(): Context
Link copied to clipboard
abstract fun getNode(): Node<T>
Link copied to clipboard
fun getOutboundDependencies(): ListSet<Dependency>
Link copied to clipboard
fun getOutputContext(): Context
Link copied to clipboard
abstract fun getRate(): Double
Link copied to clipboard
fun getTau(): Time
Link copied to clipboard
abstract fun getTimeDistribution(): TimeDistribution<T>
Link copied to clipboard
fun hashCode(): Int
Link copied to clipboard
open fun initializationComplete(atTime: Time, environment: Environment<T, out Any>)
Link copied to clipboard
abstract fun setActions(p: List<Action<T>>)
Link copied to clipboard
abstract fun setConditions(p: List<Condition<T>>)
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
fun update(currentTime: Time, hasBeenExecuted: Boolean, environment: Environment<T, out Any>)

Properties

Link copied to clipboard
private open var actions: List<out Action<T>>
Link copied to clipboard
private open var conditions: List<out Condition<T>>
Link copied to clipboard
private val node: Node<T>
Link copied to clipboard
private val timeDistribution: TimeDistribution<T>

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard