Package xal.smf.impl
Enum Class WireScanner.CMDARG
- All Implemented Interfaces:
Serializable
,Comparable<WireScanner.CMDARG>
,Constable
- Enclosing class:
- WireScanner
Valid arguments to commands accepting arguments.
- Since:
- Aug 21, 2009
- Author:
- Christopher K. Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHit command argument: ForwardUpdate command argument 1: NoneBrake command argument: turn the brake offBrake command argument: turn the brake onUpdate command argument 1: ProfileUpdate command argument 1: Point (live data update)Hit command argument: ReverseLoad ParametersUpdate command argument 1: Trace -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the integer-value command argument associated with the (CMD,ARG) pair.Returns the integer-value device command associated with the (CMD,ARG) pair.static WireScanner.CMDARG
Returns the enum constant of this class with the specified name.static WireScanner.CMDARG[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OFF
Brake command argument: turn the brake off -
ON
Brake command argument: turn the brake on -
REV
Hit command argument: Reverse -
FWD
Hit command argument: Forward -
SETUPDAQ
Load Parameters -
NONE
Update command argument 1: None -
PT
Update command argument 1: Point (live data update) -
TRACE
Update command argument 1: Trace -
PROF
Update command argument 1: Profile
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getCommand
Returns the integer-value device command associated with the (CMD,ARG) pair.- Returns:
- device command for enumeration constant
- Since:
- Aug 21, 2009
-
getArgCode
public int getArgCode()Returns the integer-value command argument associated with the (CMD,ARG) pair.- Returns:
- command argument for enumeration constant
- Since:
- Aug 21, 2009
-