public enum RobotCmdState extends java.lang.Enum<RobotCmdState>
Enum Constant and Description |
---|
ACTIVE |
FAILED |
INITIAL |
PENDING |
PREEMPTED |
REJECTED |
SUCCEED |
Modifier and Type | Method and Description |
---|---|
static RobotCmdState |
getCommandState(int value) |
java.lang.String |
getDescription() |
java.lang.String |
toString() |
static RobotCmdState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RobotCmdState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RobotCmdState ACTIVE
public static final RobotCmdState FAILED
public static final RobotCmdState INITIAL
public static final RobotCmdState PENDING
public static final RobotCmdState PREEMPTED
public static final RobotCmdState REJECTED
public static final RobotCmdState SUCCEED
public static RobotCmdState getCommandState(int value)
public java.lang.String getDescription()
public java.lang.String toString()
toString
in class java.lang.Enum<RobotCmdState>
public static RobotCmdState 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 static RobotCmdState[] values()
for (RobotCmdState c : RobotCmdState.values()) System.out.println(c);