public enum DeviceState extends java.lang.Enum<DeviceState>
Enum Constant and Description |
---|
CLOSED
The device is not connected and not trying to connect
but will still respond to commands.
|
DEAD
The device is no longer usable and will not respond to commands.
|
PROCESSING_REQUEST
The plugin is currently processing a command request from a client.
|
SEARCHING
The device is attempting to establish a connection.
|
TRACKING
The device has an open connection, and can receive and transmit data.
|
UNRECOGNIZED
The value sent by the plugin service was unrecognized indicating an upgrade of the PCC may be required to handle the value.
|
Modifier and Type | Method and Description |
---|---|
int |
getIntValue()
Convert enum to equivalent int value
|
static DeviceState |
getValueFromInt(int intValue)
Convert int to equivalent enum value
|
static DeviceState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DeviceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeviceState DEAD
public static final DeviceState CLOSED
public static final DeviceState SEARCHING
DEAD
.public static final DeviceState TRACKING
public static final DeviceState PROCESSING_REQUEST
public static final DeviceState UNRECOGNIZED
public static DeviceState[] values()
for (DeviceState c : DeviceState.values()) System.out.println(c);
public static DeviceState 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 int getIntValue()
public static DeviceState getValueFromInt(int intValue)
intValue
- integer to convertCopyright © 2015 Dynastream Innovations Inc. All Rights Reserved.