Scheduler

interface Scheduler<T>

The type which describes the concentration of a molecule This interface is meant to be implemented by the data structure(s) which must manage the reactions.

Parameters

<T>

concentration type

Functions

Link copied to clipboard
abstract fun addReaction(r: Reaction<T>)
Adds a reaction to the data structure.
Link copied to clipboard
abstract fun getNext(): Reaction<T>
Allows to access the next reaction to be executed.
Link copied to clipboard
abstract fun removeReaction(r: Reaction<T>)
Removes a reaction from the structure.
Link copied to clipboard
abstract fun updateReaction(r: Reaction<T>)
Notifies the structure that the reaction r has changed.

Inheritors

Link copied to clipboard