Scheduler

interface Scheduler<T>(source)

The data structure(s) managing the reactions to be executed.

Type Parameters

T

concentration type

Properties

Link copied to clipboard
abstract val next: Reaction<T>?

The next reaction to be executed, or null if there is none.

Functions

Link copied to clipboard
abstract fun addReaction(reaction: Reaction<T>)

Adds reaction to the data structure.

Link copied to clipboard
abstract fun removeReaction(reaction: Reaction<T>)

Removes reaction from the structure. Fails if the reaction is not present.

Link copied to clipboard
abstract fun updateReaction(reaction: Reaction<T>)

Notifies the structure that reaction has changed. The whole structure will be rearranged to ensure consistency.