Enum Constant and Description |
---|
BUS_CRASHED
The bus crashed.
|
BUS_RUNNING
The bus is running.
|
BUS_STARTING
The bus is starting.
|
BUS_STOPPED
The bus isn't running.
|
BUS_STOPPING
The bus is stopping.
|
TRIP_BEGINNING
A trip is beginning.
|
TRIP_ENDING
A trip is intending.
|
Modifier and Type | Method and Description |
---|---|
static BusPhase |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BusPhase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BusPhase BUS_STOPPED
public static final BusPhase BUS_STARTING
public static final BusPhase TRIP_BEGINNING
public static final BusPhase BUS_RUNNING
public static final BusPhase TRIP_ENDING
public static final BusPhase BUS_STOPPING
public static final BusPhase BUS_CRASHED
public static BusPhase[] values()
for (BusPhase c : BusPhase.values()) System.out.println(c);
public static BusPhase valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null