finished

open fun finished(@Nonnull environment: Environment<T, P>, @Nonnull time: Time, step: Long)

This method will be called by the simulation once the whole simulation has finished, either because it reached its latest point or because the user stopped it. 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

time

The time at which the simulation ended

step

The last step number