Interface OutputMonitor
-
- All Implemented Interfaces:
-
java.io.Serializable
public interface OutputMonitor<T, P extends Position<out P>> implements Serializable
An interface for the visualization of the simulation.
-
-
Method Summary
Modifier and Type Method Description void
finished(@Nonnull() Environment<T, P> environment, @Nonnull() Time time, long step)
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. void
initialized(@Nonnull() Environment<T, P> environment)
This method will be called by the simulation as soon as the initialization phase is completed. void
stepDone(@Nonnull() Environment<T, P> environment, @Nullable() Actionable<T> reaction, @Nonnull() Time time, long step)
This method will be called by the simulation every time a simulation step is done. -
-
Method Detail
-
finished
void finished(@Nonnull() Environment<T, P> environment, @Nonnull() Time time, long step)
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 environmenttime
- The time at which the simulation endedstep
- The last step number
-
initialized
void initialized(@Nonnull() Environment<T, P> environment)
This method will be called by the simulation as soon as the initialization phase is completed. 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 environment
-
stepDone
void stepDone(@Nonnull() Environment<T, P> environment, @Nullable() Actionable<T> reaction, @Nonnull() Time time, long step)
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 environmentreaction
- The last reaction executedtime
- The time at this simulation pointstep
- The current simulation step
-
-
-
-