public enum SensorCode extends java.lang.Enum<SensorCode>
Enum Constant and Description |
---|
SENSOR_LIGHT |
SENSOR_TEMP |
Modifier and Type | Method and Description |
---|---|
int |
getSensorCode()
Diese Methode gibt zum Sensortypes den Integer-Wert für die
MrwMessage wieder. |
static SensorCode |
getSensorCode(int code)
Diese Methode wandelt die Integer-Variante des Sensortypes aus einer
MrwMessage in eine Enum-Instanz um. |
static SensorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SensorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SensorCode SENSOR_LIGHT
public static final SensorCode SENSOR_TEMP
public static SensorCode[] values()
for (SensorCode c : SensorCode.values()) System.out.println(c);
public static SensorCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getSensorCode()
MrwMessage
wieder.MrwMessage
.public static SensorCode getSensorCode(int code)
MrwMessage
in eine Enum-Instanz um.code
- Der Rückmelde-Wert als IntegerCodeNotFoundException
- Wenn zum Sensortypes keine Enum-Instanz gefunden wurde.Copyright © 2011 all committers of this modelrailway project