SwingGUI
Deprecated
The Swing UI must be replaced by a web UI
Creates a Swing-based graphical interface for the provided environment. The actual implementation of the main display is chosen based on the type of environment.
Parameters
the simulation environment for this GUI (property)
optional effects file to load (may be null)
the JFrame close operation constant
if true, throw when running in headless mode; otherwise only warn
the main display component backing this monitor (property)
Type Parameters
the concentration type used by the environment
the concrete Position2D type used by the environment
Constructors
Builds a single-use graphical interface.
Builds a single-use graphical interface from an effects file path.
Functions
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.
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.
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.