public enum ChannelState extends java.lang.Enum<ChannelState>
Enum Constant and Description |
---|
ASSIGNED
Ready to be configured and then opened.
|
INVALID
Received state does not match possible states.
|
SEARCHING
Open and searching for devices with matching channel ID
|
TRACKING
Found and connected to a device.
|
UNASSIGNED
Not configured and closed.
|
Modifier and Type | Method and Description |
---|---|
static ChannelState |
create(int rawValue)
Creates the channel state from a raw value.
|
int |
getRawValue()
Returns the raw value for this channel state.
|
static ChannelState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChannelState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChannelState UNASSIGNED
public static final ChannelState ASSIGNED
public static final ChannelState SEARCHING
public static final ChannelState TRACKING
public static final ChannelState INVALID
public static ChannelState[] values()
for (ChannelState c : ChannelState.values()) System.out.println(c);
public static ChannelState 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 getRawValue()
public static ChannelState create(int rawValue)
rawValue
- The raw value.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.