public static enum WireScanner.CMDARG extends java.lang.Enum<WireScanner.CMDARG>
Enum Constant and Description |
---|
FWD
Hit command argument: Forward
|
NONE
Update command argument 1: None
|
OFF
Brake command argument: turn the brake off
|
ON
Brake command argument: turn the brake on
|
PROF
Update command argument 1: Profile
|
PT
Update command argument 1: Point (live data update)
|
REV
Hit command argument: Reverse
|
SETUPDAQ
Load Parameters
|
TRACE
Update command argument 1: Trace
|
Modifier and Type | Method and Description |
---|---|
int |
getArgCode()
Returns the integer-value command argument
associated with the (CMD,ARG) pair.
|
WireScanner.CMD |
getCommand()
Returns the integer-value device command
associated with the (CMD,ARG) pair.
|
static WireScanner.CMDARG |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WireScanner.CMDARG[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WireScanner.CMDARG OFF
public static final WireScanner.CMDARG ON
public static final WireScanner.CMDARG REV
public static final WireScanner.CMDARG FWD
public static final WireScanner.CMDARG SETUPDAQ
public static final WireScanner.CMDARG NONE
public static final WireScanner.CMDARG PT
public static final WireScanner.CMDARG TRACE
public static final WireScanner.CMDARG PROF
public static WireScanner.CMDARG[] values()
for (WireScanner.CMDARG c : WireScanner.CMDARG.values()) System.out.println(c);
public static WireScanner.CMDARG 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 WireScanner.CMD getCommand()
public int getArgCode()