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:
java.io.Serializable
,java.lang.Comparable<LncvMessageContents.LncvCommand>
- Enclosing class:
- LncvMessageContents
public static enum LncvMessageContents.LncvCommand extends java.lang.Enum<LncvMessageContents.LncvCommand>
LNCV Commands mapped to unique sets of 3 parts in message. LNCV knows only 3 simple <CMD> values.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LNCV_DIRECT_LED1
LNCV_DIRECT_LED2
LNCV_DIRECT_REPLY
LNCV_PROG_END
LNCV_PROG_START
LNCV_READ
LNCV_READ_REPLY
LNCV_READ_REPLY2
LNCV_WRITE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
getCmd()
static int
getCmd(LncvMessageContents.LncvCommand mt)
(package private) int
getCmdData()
(package private) int
getOpc()
java.lang.Boolean
matches(int matchCommand, int matchOpc, int matchData)
static LncvMessageContents.LncvCommand
valueOf(java.lang.String name)
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 Detail
-
LNCV_WRITE
public static final LncvMessageContents.LncvCommand LNCV_WRITE
-
LNCV_READ
public static final LncvMessageContents.LncvCommand LNCV_READ
-
LNCV_READ_REPLY
public static final LncvMessageContents.LncvCommand LNCV_READ_REPLY
-
LNCV_READ_REPLY2
public static final LncvMessageContents.LncvCommand LNCV_READ_REPLY2
-
LNCV_PROG_START
public static final LncvMessageContents.LncvCommand LNCV_PROG_START
-
LNCV_PROG_END
public static final LncvMessageContents.LncvCommand LNCV_PROG_END
-
LNCV_DIRECT_LED1
public static final LncvMessageContents.LncvCommand LNCV_DIRECT_LED1
-
LNCV_DIRECT_LED2
public static final LncvMessageContents.LncvCommand LNCV_DIRECT_LED2
-
LNCV_DIRECT_REPLY
public static final LncvMessageContents.LncvCommand LNCV_DIRECT_REPLY
-
-
Method Detail
-
values
public static LncvMessageContents.LncvCommand[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LncvMessageContents.LncvCommand c : LncvMessageContents.LncvCommand.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LncvMessageContents.LncvCommand valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getCmd
int getCmd()
-
getOpc
int getOpc()
-
getCmdData
int getCmdData()
-
getCmd
public static int getCmd(LncvMessageContents.LncvCommand mt)
-
matches
public java.lang.Boolean matches(int matchCommand, int matchOpc, int matchData)
-
-