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(reaction: Actionable<T>)
Adds a reaction to the data structure.
Link copied to clipboard
abstract fun getNext(): Actionable<T>
Allows to access the next reaction to be executed.
Link copied to clipboard
abstract fun removeReaction(reaction: Actionable<T>)
Removes a reaction from the structure.
Link copied to clipboard
abstract fun updateReaction(reaction: Actionable<T>)
Notifies the structure that the reaction r has changed.