Reaction

interface Reaction<T> : Comparable<Reaction<T>> , Serializable

Parameters

<T>

The type which describes the concentration of a molecule A generic reaction. Every reaction in the system must implement this interface.

Functions

Link copied to clipboard
abstract fun canExecute(): Boolean
Link copied to clipboard
abstract fun cloneOnNewNode(node: Node<T>, currentTime: Time): Reaction<T>
This method allows to clone this reaction on a new node.
Link copied to clipboard
abstract fun compareTo(p: T): Int
Link copied to clipboard
abstract fun execute()
Executes the reactions.
Link copied to clipboard
abstract fun getActions(): List<Action<T>>
Link copied to clipboard
abstract fun getConditions(): List<Condition<T>>
Link copied to clipboard
abstract fun getInboundDependencies(): ListSet<out Dependency>
Link copied to clipboard
abstract fun getInputContext(): Context
Link copied to clipboard
abstract fun getNode(): Node<T>
Link copied to clipboard
abstract fun getOutboundDependencies(): ListSet<out Dependency>
Link copied to clipboard
abstract fun getOutputContext(): Context
Link copied to clipboard
abstract fun getRate(): Double
Returns the speed of this Reaction.
Link copied to clipboard
abstract fun getTau(): Time
Link copied to clipboard
abstract fun getTimeDistribution(): TimeDistribution<T>
Link copied to clipboard
abstract fun initializationComplete(atTime: Time, environment: Environment<T, out Any>)
This method is called when the environment has completed its initialization.
Link copied to clipboard
abstract fun setActions(actions: List<Action<T>>)
Sets the Actions list.
Link copied to clipboard
abstract fun setConditions(conditions: List<Condition<T>>)
Sets the Conditions list.
Link copied to clipboard
abstract fun update(currentTime: Time, hasBeenExecuted: Boolean, environment: Environment<T, out Any>)
Updates the scheduling of this reaction.

Inheritors

Link copied to clipboard