com.azalient.api.a
Enum ISimulator.SimulationPhase

java.lang.Object
  extended by java.lang.Enum<ISimulator.SimulationPhase>
      extended by com.azalient.api.a.ISimulator.SimulationPhase
All Implemented Interfaces:
Serializable, Comparable<ISimulator.SimulationPhase>
Enclosing interface:
ISimulator

public static enum ISimulator.SimulationPhase
extends Enum<ISimulator.SimulationPhase>

An enumeration of phases within the main simulation loop


Enum Constant Summary
FINISH
           
LOOK
          LOOK phase calls AgentEventTimeStep.timeStep()
MOVE
          MOVE phase calls AgentEventMove.move()
RELEASE
           
SORT
           
TRANSFER
           
WAIT
           
 
Method Summary
static ISimulator.SimulationPhase valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ISimulator.SimulationPhase[] 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

WAIT

public static final ISimulator.SimulationPhase WAIT

RELEASE

public static final ISimulator.SimulationPhase RELEASE

MOVE

public static final ISimulator.SimulationPhase MOVE
MOVE phase calls AgentEventMove.move()


TRANSFER

public static final ISimulator.SimulationPhase TRANSFER

SORT

public static final ISimulator.SimulationPhase SORT

LOOK

public static final ISimulator.SimulationPhase LOOK
LOOK phase calls AgentEventTimeStep.timeStep()


FINISH

public static final ISimulator.SimulationPhase FINISH
Method Detail

values

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

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

valueOf

public static ISimulator.SimulationPhase valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null