interface Scheduler<T : Any!>
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.
addReaction |
Adds a reaction to the data structure. abstract fun addReaction(r: Reaction<T>!): Unit |
getNext |
Allows to access the next reaction to be executed. abstract fun getNext(): Reaction<T>! |
removeReaction |
Removes a reaction from the structure. If the reaction is not present, nothing is done and an Exception is thrown. abstract fun removeReaction(r: Reaction<T>!): Unit |
updateReaction |
Notifies the structure that the reaction r has changed. The whole structure will be rearranged to ensure consistency. abstract fun updateReaction(r: Reaction<T>!): Unit |