fr.lifl.jedi.controllersCore.events
Enum FromThreadToCoreEvents

java.lang.Object
  extended by java.lang.Enum<FromThreadToCoreEvents>
      extended by fr.lifl.jedi.controllersCore.events.FromThreadToCoreEvents
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FromThreadToCoreEvents>

public enum FromThreadToCoreEvents
extends java.lang.Enum<FromThreadToCoreEvents>

Event thrown by the thread that runs the simulation to the simulation core. These events notify the state in which the thread 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

Enum Constant Summary
ABORTED_MESSAGE
          Event thrown by the thread to tell that the simulation has aborted.
ENDED_MESSAGE
          Event thrown by the thread to tell that the simulation has finished.
PAUSE_ENDED_MESSAGE
          Event thrown by the thread to tell that the pause has ended.
PAUSE_STARTED_MESSAGE
          Event thrown by the thread to tell that the pause has started.
STEP_ENDED_MESSAGE
          Event thrown by the thread to tell that a simulation step has ended.
 
Method Summary
static FromThreadToCoreEvents valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FromThreadToCoreEvents[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STEP_ENDED_MESSAGE

public static final FromThreadToCoreEvents STEP_ENDED_MESSAGE
Event thrown by the thread to tell that a simulation step has ended.


PAUSE_STARTED_MESSAGE

public static final FromThreadToCoreEvents PAUSE_STARTED_MESSAGE
Event thrown by the thread to tell that the pause has started.


PAUSE_ENDED_MESSAGE

public static final FromThreadToCoreEvents PAUSE_ENDED_MESSAGE
Event thrown by the thread to tell that the pause has ended.


ABORTED_MESSAGE

public static final FromThreadToCoreEvents ABORTED_MESSAGE
Event thrown by the thread to tell that the simulation has aborted.


ENDED_MESSAGE

public static final FromThreadToCoreEvents ENDED_MESSAGE
Event thrown by the thread to tell that the simulation has finished.

Method Detail

values

public static FromThreadToCoreEvents[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FromThreadToCoreEvents c : FromThreadToCoreEvents.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FromThreadToCoreEvents valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null