updateSchedulingAfterInvalidation

override fun updateSchedulingAfterInvalidation(currentTime: Time)

Refreshes this reaction's scheduling after one or more observed model inputs changed.

The engine invokes this once when the enclosing model mutation completes, using the simulation time at which the mutation (execution of the reaction) happened. Implementations own the resulting scheduling policy and communicate any change only through nextOccurrence: a refresh invalidating any reaction, this one included, violates this contract.

Parameters

currentTime

the simulation time of the model mutation