public static enum WireHarp.CMD extends java.lang.Enum<WireHarp.CMD>
The commands below represent the possible values for the first argument in the command array. It provides the command type while additional arguments provide the command parameters.
| Enum Constant and Description |
|---|
BASELINE
Take a new baseline measurement
|
NOOP
No operation
|
SECRET
The secret command
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HANDLE_CMD
Command-issuing handle
|
static java.lang.String |
HANDLE_RESULT
command result handle
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Returns the integer-value device command associated with the command enumeration
constant.
|
static WireHarp.CMD |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WireHarp.CMD[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WireHarp.CMD NOOP
public static final WireHarp.CMD BASELINE
public static final WireHarp.CMD SECRET
public static final java.lang.String HANDLE_CMD
public static final java.lang.String HANDLE_RESULT
public static WireHarp.CMD[] values()
for (WireHarp.CMD c : WireHarp.CMD.values()) System.out.println(c);
public static WireHarp.CMD 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 getCode()