Package jmri.jmrix.loconet.lnsvf2
Enum LnSv2MessageContents.Sv2Command
- java.lang.Object
-
- java.lang.Enum<LnSv2MessageContents.Sv2Command>
-
- jmri.jmrix.loconet.lnsvf2.LnSv2MessageContents.Sv2Command
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LnSv2MessageContents.Sv2Command>
- Enclosing class:
- LnSv2MessageContents
public static enum LnSv2MessageContents.Sv2Command extends java.lang.Enum<LnSv2MessageContents.Sv2Command>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
getCmd()
static int
getCmd(LnSv2MessageContents.Sv2Command mt)
static LnSv2MessageContents.Sv2Command
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LnSv2MessageContents.Sv2Command[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SV2_WRITE_ONE
public static final LnSv2MessageContents.Sv2Command SV2_WRITE_ONE
-
SV2_QUERY_ONE
public static final LnSv2MessageContents.Sv2Command SV2_QUERY_ONE
-
SV2_WRITE_ONE_MASKED
public static final LnSv2MessageContents.Sv2Command SV2_WRITE_ONE_MASKED
-
SV2_WRITE_FOUR
public static final LnSv2MessageContents.Sv2Command SV2_WRITE_FOUR
-
SV2_QUERY_FOUR
public static final LnSv2MessageContents.Sv2Command SV2_QUERY_FOUR
-
SV2_DISCOVER_ALL
public static final LnSv2MessageContents.Sv2Command SV2_DISCOVER_ALL
-
SV2_IDENTIFY_DEVICES_BY_TYPE
public static final LnSv2MessageContents.Sv2Command SV2_IDENTIFY_DEVICES_BY_TYPE
-
SV2_CHANGE_DEVICE_ADDRESS
public static final LnSv2MessageContents.Sv2Command SV2_CHANGE_DEVICE_ADDRESS
-
SV2_RECONFIGURE_DEVICE
public static final LnSv2MessageContents.Sv2Command SV2_RECONFIGURE_DEVICE
-
SV2_WRITE_ONE_REPLY
public static final LnSv2MessageContents.Sv2Command SV2_WRITE_ONE_REPLY
-
SV2_REPORT_ONE
public static final LnSv2MessageContents.Sv2Command SV2_REPORT_ONE
-
SV2_WRITE_ONE_MASKED_REPLYL
public static final LnSv2MessageContents.Sv2Command SV2_WRITE_ONE_MASKED_REPLYL
-
SV2_WRITE_FOUR_REPLY
public static final LnSv2MessageContents.Sv2Command SV2_WRITE_FOUR_REPLY
-
SV2_REPORT_FOUR
public static final LnSv2MessageContents.Sv2Command SV2_REPORT_FOUR
-
SV2_DISCOVER_DEVICE_REPORT
public static final LnSv2MessageContents.Sv2Command SV2_DISCOVER_DEVICE_REPORT
-
SV2_DEVICE_TYPE_REPORT
public static final LnSv2MessageContents.Sv2Command SV2_DEVICE_TYPE_REPORT
-
SV2_CHANGE_DEVICE_ADDRESS_REPLY
public static final LnSv2MessageContents.Sv2Command SV2_CHANGE_DEVICE_ADDRESS_REPLY
-
SV2_RECONFIGURE_DEVICE_REPLY
public static final LnSv2MessageContents.Sv2Command SV2_RECONFIGURE_DEVICE_REPLY
-
-
Method Detail
-
values
public static LnSv2MessageContents.Sv2Command[] 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 (LnSv2MessageContents.Sv2Command c : LnSv2MessageContents.Sv2Command.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LnSv2MessageContents.Sv2Command 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()
-
getCmd
public static int getCmd(LnSv2MessageContents.Sv2Command mt)
-
-