alchemist-interfaces / it.unibo.alchemist.boundary.interfaces / OutputMonitor / stepDone

stepDone

abstract fun stepDone(env: Environment<T, P>!, r: Reaction<T>!, time: Time!, step: Long): Unit

This method will be called by the simulation every time a simulation step is done. Thread safety note: no specific policy is defined for the control flow which will execute this method. A new thread could have been spawned or the same flow of the simulation may execute this method. This depends on the specific it.unibo.alchemist.core.interfaces.Simulation implementation.

Parameters

env - Environment<T, P>!: The current environment

r - Reaction<T>!: The last reaction executed

time - Time!: The time at this simulation point

step - Long: The current simulation step