fr.lifl.jedi.controllersCore.events
Class FromSimulationCoreEvent

java.lang.Object
  extended by fr.lifl.jedi.controllersCore.events.FromSimulationCoreEvent

public class FromSimulationCoreEvent
extends java.lang.Object

Event thrown by the simulation core to the controllers registered to it. These events notify the state in which the simulation core is currently.

Version:
JEDI V 2.2
Created the 2nd april 2009
Modified the 5th may 2009
Author:
Yoann Kubera
SMAC Team (Systèmes Multi-Agents et Comportement)
LIFL (Laboratoire d'Informatique Fondamentale de Lille)
University of Lille, France

Field Summary
static java.util.Map<SimulationCoreStates,FromSimulationCoreEvent> EVENTS
          For implementation efficiency, instead of instanciating every event when the simulation core changes state, all instances are created once in this structure.
 
Method Summary
 SimulationCoreStates getReachedState()
          Gets the state reached by the simulation core.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENTS

public static java.util.Map<SimulationCoreStates,FromSimulationCoreEvent> EVENTS
For implementation efficiency, instead of instanciating every event when the simulation core changes state, all instances are created once in this structure. This avoids excessive Garbage Collections.

Method Detail

getReachedState

public SimulationCoreStates getReachedState()
Gets the state reached by the simulation core.

Returns:
the state reached by the simulation core.