Package jmri.jmrix.loconet.alm
Enum AlmMsgTypes
- java.lang.Object
-
- java.lang.Enum<AlmMsgTypes>
-
- jmri.jmrix.loconet.alm.AlmMsgTypes
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AlmMsgTypes>
public enum AlmMsgTypes extends java.lang.Enum<AlmMsgTypes>
An enumeration to assist with ALM message handling.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALM_BAW
ALM_RDQ
ALM_ROUTCAPQ
ALM_ROUTCAPREP
ALM_ROUTDATREP
ALM_ROUTDATW
ALM_ROUTECSCAPREP
ALM_UNKNOWN
NOT_ALM_MSG
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AlmMsgTypes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AlmMsgTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_ALM_MSG
public static final AlmMsgTypes NOT_ALM_MSG
-
ALM_ROUTCAPQ
public static final AlmMsgTypes ALM_ROUTCAPQ
-
ALM_ROUTCAPREP
public static final AlmMsgTypes ALM_ROUTCAPREP
-
ALM_RDQ
public static final AlmMsgTypes ALM_RDQ
-
ALM_ROUTDATW
public static final AlmMsgTypes ALM_ROUTDATW
-
ALM_ROUTDATREP
public static final AlmMsgTypes ALM_ROUTDATREP
-
ALM_BAW
public static final AlmMsgTypes ALM_BAW
-
ALM_ROUTECSCAPREP
public static final AlmMsgTypes ALM_ROUTECSCAPREP
-
ALM_UNKNOWN
public static final AlmMsgTypes ALM_UNKNOWN
-
-
Method Detail
-
values
public static AlmMsgTypes[] 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 (AlmMsgTypes c : AlmMsgTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlmMsgTypes 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
-
-