stepDone

open fun stepDone(@Nonnull environment: Environment<T, P>, @Nullable reaction: Actionable<T>, @Nonnull time: Time, step: Long)

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.Simulation implementation.

Parameters

environment

The current environment

reaction

The last reaction executed

time

The time at this simulation point

step

The current simulation step