public enum RobotState extends java.lang.Enum<RobotState>
Enum Constant and Description |
---|
EMERGENCY_STOP |
INIT |
NOT_STARTED |
RUNNING |
STOPPED |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
byte |
asByte() |
static RobotState |
fromByte(int b) |
java.lang.String |
toString(Context context) |
static RobotState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RobotState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RobotState UNKNOWN
public static final RobotState NOT_STARTED
public static final RobotState INIT
public static final RobotState RUNNING
public static final RobotState STOPPED
public static final RobotState EMERGENCY_STOP
public static RobotState[] values()
for (RobotState c : RobotState.values()) System.out.println(c);
public static RobotState 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 byte asByte()
public static RobotState fromByte(int b)
public java.lang.String toString(Context context)