com.azalient.apo.enums
Enum SurfaceMode

java.lang.Object
  extended by java.lang.Enum<SurfaceMode>
      extended by com.azalient.apo.enums.SurfaceMode
All Implemented Interfaces:
Serializable, Comparable<SurfaceMode>

public enum SurfaceMode
extends Enum<SurfaceMode>

Types of surfaces on which agents move: walkway, road, ...


Enum Constant Summary
Rail
           
Road
           
Walkway
           
 
Method Summary
static SurfaceMode parse(String s)
           
static SurfaceMode parseTravelMode(String s)
           
 String toString()
           
static SurfaceMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SurfaceMode[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Walkway

public static final SurfaceMode Walkway

Road

public static final SurfaceMode Road

Rail

public static final SurfaceMode Rail
Method Detail

values

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

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

valueOf

public static SurfaceMode 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

parse

public static SurfaceMode parse(String s)

parseTravelMode

public static SurfaceMode parseTravelMode(String s)

toString

public String toString()
Overrides:
toString in class Enum<SurfaceMode>