Package jmri.jmrix.loconet.uhlenbrock
Enum LncvMessageContents.LncvCommand
java.lang.Object
java.lang.Enum<LncvMessageContents.LncvCommand>
jmri.jmrix.loconet.uhlenbrock.LncvMessageContents.LncvCommand
- All Implemented Interfaces:
Serializable,Comparable<LncvMessageContents.LncvCommand>,java.lang.constant.Constable
- Enclosing class:
- LncvMessageContents
LNCV Commands mapped to unique sets of 3 parts in message. LNCV knows only 3 simple <CMD> values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescription(package private) intgetCmd()static int(package private) int(package private) intgetOpc()matches(int matchCommand, int matchOpc, int matchData) Returns the enum constant of this type with the specified name.static LncvMessageContents.LncvCommand[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LNCV_WRITE
-
LNCV_READ
-
LNCV_READ_REPLY
-
LNCV_READ_REPLY2
-
LNCV_PROG_START
-
LNCV_PROG_END
-
LNCV_DIRECT_LED1
-
LNCV_DIRECT_LED2
-
LNCV_DIRECT_REPLY
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getCmd
int getCmd() -
getOpc
int getOpc() -
getCmdData
int getCmdData() -
getCmd
-
matches
-