public enum RobotStatus extends java.lang.Enum<RobotStatus>
RobotStatus
provides additional status information about a robot
beyond what is indicated in RobotState
when the state is not 'running'.Enum Constant and Description |
---|
ABORT_DUE_TO_INTERRUPT |
NETWORK_TIMED_OUT |
NONE |
SCANNING_USB |
STARTING_ROBOT |
UNABLE_TO_START_ROBOT |
UNKNOWN |
WAITING_ON_NETWORK_CONNECTION |
WAITING_ON_WIFI |
WAITING_ON_WIFI_DIRECT |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString(Context context) |
static RobotStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RobotStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RobotStatus UNKNOWN
public static final RobotStatus NONE
public static final RobotStatus SCANNING_USB
public static final RobotStatus ABORT_DUE_TO_INTERRUPT
public static final RobotStatus WAITING_ON_WIFI
public static final RobotStatus WAITING_ON_WIFI_DIRECT
public static final RobotStatus WAITING_ON_NETWORK_CONNECTION
public static final RobotStatus NETWORK_TIMED_OUT
public static final RobotStatus STARTING_ROBOT
public static final RobotStatus UNABLE_TO_START_ROBOT
public static RobotStatus[] values()
for (RobotStatus c : RobotStatus.values()) System.out.println(c);
public static RobotStatus 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 java.lang.String toString(Context context)