Package org.openmuc.framework.dataaccess
Enum DeviceState
- java.lang.Object
-
- java.lang.Enum<DeviceState>
-
- org.openmuc.framework.dataaccess.DeviceState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DeviceState>
public enum DeviceState extends java.lang.Enum<DeviceState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTED
CONNECTING
DELETED
DISABLED
DISCONNECTING
DRIVER_UNAVAILABLE
READING
SCANNING_FOR_CHANNELS
STARTING_TO_LISTEN
WAITING_FOR_CONNECTION_RETRY
WRITING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Enum Constant Detail
-
READING
public static final DeviceState READING
-
WRITING
public static final DeviceState WRITING
-
STARTING_TO_LISTEN
public static final DeviceState STARTING_TO_LISTEN
-
SCANNING_FOR_CHANNELS
public static final DeviceState SCANNING_FOR_CHANNELS
-
CONNECTED
public static final DeviceState CONNECTED
-
CONNECTING
public static final DeviceState CONNECTING
-
WAITING_FOR_CONNECTION_RETRY
public static final DeviceState WAITING_FOR_CONNECTION_RETRY
-
DISCONNECTING
public static final DeviceState DISCONNECTING
-
DRIVER_UNAVAILABLE
public static final DeviceState DRIVER_UNAVAILABLE
-
DISABLED
public static final DeviceState DISABLED
-
DELETED
public static final DeviceState DELETED
-
-
Method Detail
-
values
public static DeviceState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DeviceState c : DeviceState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeviceState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-