-
- All Implemented Interfaces:
public 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.
-
-
Method Summary
Modifier and Type Method Description abstract voidaddReaction(Reaction<T> r)Adds a reaction to the data structure. abstract Reaction<T>getNext()Allows to access the next reaction to be executed. abstract voidremoveReaction(Reaction<T> r)Removes a reaction from the structure. abstract voidupdateReaction(Reaction<T> r)Notifies the structure that the reaction r has changed. -
-
Method Detail
-
addReaction
abstract void addReaction(Reaction<T> r)
Adds a reaction to the data structure.
- Parameters:
r- the reaction to be added
-
removeReaction
abstract void removeReaction(Reaction<T> r)
Removes a reaction from the structure. If the reaction is not present, nothing is done and an Exception is thrown.
- Parameters:
r- the reaction to be removed
-
updateReaction
abstract void updateReaction(Reaction<T> r)
Notifies the structure that the reaction r has changed. The whole structure will be rearranged to ensure consistency.
- Parameters:
r- the reaction which has changed
-
-
-
-