cmsc433.p2
Enum SimulationEvent.EventType

java.lang.Object
  extended by java.lang.Enum<SimulationEvent.EventType>
      extended by cmsc433.p2.SimulationEvent.EventType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SimulationEvent.EventType>
Enclosing class:
SimulationEvent

public static enum SimulationEvent.EventType
extends java.lang.Enum<SimulationEvent.EventType>


Enum Constant Summary
CookCompletedOrder
           
CookEnding
           
CookFinishedFood
           
CookReceivedOrder
           
CookStartedFood
           
CookStarting
           
EaterEnteredRestaurant
           
EaterLeavingRestaurant
           
EaterPlacedOrder
           
EaterReceivedOrder
           
EaterStarting
           
MachineDoneFood
           
MachineEnding
           
MachineStarting
           
MachineStartingFood
           
SimulationEnded
           
SimulationStarting
           
 
Method Summary
static SimulationEvent.EventType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SimulationEvent.EventType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SimulationStarting

public static final SimulationEvent.EventType SimulationStarting

SimulationEnded

public static final SimulationEvent.EventType SimulationEnded

EaterStarting

public static final SimulationEvent.EventType EaterStarting

EaterEnteredRestaurant

public static final SimulationEvent.EventType EaterEnteredRestaurant

EaterPlacedOrder

public static final SimulationEvent.EventType EaterPlacedOrder

EaterReceivedOrder

public static final SimulationEvent.EventType EaterReceivedOrder

EaterLeavingRestaurant

public static final SimulationEvent.EventType EaterLeavingRestaurant

CookStarting

public static final SimulationEvent.EventType CookStarting

CookReceivedOrder

public static final SimulationEvent.EventType CookReceivedOrder

CookStartedFood

public static final SimulationEvent.EventType CookStartedFood

CookFinishedFood

public static final SimulationEvent.EventType CookFinishedFood

CookCompletedOrder

public static final SimulationEvent.EventType CookCompletedOrder

CookEnding

public static final SimulationEvent.EventType CookEnding

MachineStarting

public static final SimulationEvent.EventType MachineStarting

MachineStartingFood

public static final SimulationEvent.EventType MachineStartingFood

MachineDoneFood

public static final SimulationEvent.EventType MachineDoneFood

MachineEnding

public static final SimulationEvent.EventType MachineEnding
Method Detail

values

public static SimulationEvent.EventType[] 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 (SimulationEvent.EventType c : SimulationEvent.EventType.values())
    System.out.println(c);

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

valueOf

public static SimulationEvent.EventType 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