fr.lifl.jedi.controllersCore
Class AbstractControlGUIController<GUIView extends ISimulationGUI>
java.lang.Object
java.util.Observable
fr.lifl.jedi.controllersCore.AbstractGUIController<GUIView>
fr.lifl.jedi.controllersCore.AbstractControlGUIController<GUIView>
- All Implemented Interfaces:
- java.util.Observer
- Direct Known Subclasses:
- AutomaticSimulationController, GraphicalSimulationControlGUIController
public abstract class AbstractControlGUIController<GUIView extends ISimulationGUI>
- extends AbstractGUIController<GUIView>
Controller associated with the GUI that manages the initialization, run, pause, or abortion of simulations.
In order to avoid concurrent access issues, a simulation will be controlled by a single GUI.
Thus, a SimulationCore
references only a single AbstractControlGUIController.
To tell the simulation core that the simulation has to initialize, run, pause or abort,
the method sendEventToSimulationCore(ToSimulationCoreControlEvents)
has to be called.
- Version:
JEDI V 2.2 |
Created the 2nd april 2009 |
Modified the 5th may 2009 |
- Author:
Constructor Summary |
AbstractControlGUIController(GUIView view)
Constructor of the controller associated with the control
gui that manages the initialization, pause, run or abortion
of the simulation. |
Methods inherited from class fr.lifl.jedi.controllersCore.AbstractGUIController |
getView, handleViewMessage, reactToCloseRequest, setSimulationCore, update, updateViewAfterInitialization, updateViewAfterTimeStep, updateViewAtSimulationsAbortion, updateViewAtSimulationsEnd, updateViewDuringTimeStep, updateViewWhenPaused, updateViewWhileInitializing |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractControlGUIController
public AbstractControlGUIController(GUIView view)
- Constructor of the controller associated with the control
gui that manages the initialization, pause, run or abortion
of the simulation.
- Parameters:
view
- The view associated with this controller.
sendEventToSimulationCore
protected void sendEventToSimulationCore(ToSimulationCoreControlEvents event)
- Sends an event to the simulation core, in order to control simulations initialization,
run, pause or abortion.
- Parameters:
event
- The event to send to the simulation core.