public enum MovementStatus extends java.lang.Enum<MovementStatus>
Enum Constant and Description |
---|
CANCELED
"Unused"
|
FAILED
Unused
|
PREPPING
We are preparing the movement to be executed.
|
RUNNING
The movement is currently in progress, after
WAITING |
SUCCESS
The movement has been completed and we are at our destination
|
UNREACHABLE
There was a change in state between calculation and actual
movement execution, and the movement has now become impossible.
|
WAITING
We are waiting for the movement to begin, after
PREPPING . |
Modifier and Type | Method and Description |
---|---|
boolean |
isComplete() |
static MovementStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MovementStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MovementStatus PREPPING
public static final MovementStatus WAITING
PREPPING
.public static final MovementStatus RUNNING
WAITING
public static final MovementStatus SUCCESS
public static final MovementStatus UNREACHABLE
public static final MovementStatus FAILED
public static final MovementStatus CANCELED
public static MovementStatus[] values()
for (MovementStatus c : MovementStatus.values()) System.out.println(c);
public static MovementStatus 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 nullpublic final boolean isComplete()