public enum DirectionCode extends java.lang.Enum<DirectionCode>
Enum Constant and Description |
---|
ARC
DKW auf Bogen.
|
CROSS
DKW auf Kreuz.
|
LEFT
Weiche auf links.
|
RIGHT
Weiche auf rechts.
|
Modifier and Type | Method and Description |
---|---|
int |
getDirectionCode()
Diese Methode gibt den Richtungs-Code als Integer zurück, so wie er von den Microcontrollern gemeldet wird.
|
static DirectionCode |
getDirectionCode(Verzweigung branch,
int code)
Diese Methode wandelt die Integer-Variante eines Richtungscodes in eine Enum-Instanz um.
|
static DirectionCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DirectionCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DirectionCode LEFT
public static final DirectionCode RIGHT
public static final DirectionCode ARC
public static final DirectionCode CROSS
public static DirectionCode[] values()
for (DirectionCode c : DirectionCode.values()) System.out.println(c);
public static DirectionCode 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 getDirectionCode()
public static DirectionCode getDirectionCode(Verzweigung branch, int code)
Copyright © 2011 all committers of this modelrailway project