public static enum Weiche.TurnDirection extends java.lang.Enum<Weiche.TurnDirection>
Enum Constant and Description |
---|
AB
Weichenlage links.
|
AC
Weichenlage rechts.
|
Modifier and Type | Method and Description |
---|---|
Command |
getCommand()
Diese Methode gibt das Schaltkommando zurück.
|
DirectionCode |
getDirectionCode()
Diese Methode gibt die Weichenlage als
DirectionCode zurück. |
java.lang.String |
toString()
Weichenlage als Text.
|
static Weiche.TurnDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Weiche.TurnDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Weiche.TurnDirection AB
public static final Weiche.TurnDirection AC
public static Weiche.TurnDirection[] values()
for (Weiche.TurnDirection c : Weiche.TurnDirection.values()) System.out.println(c);
public static Weiche.TurnDirection 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 DirectionCode getDirectionCode()
DirectionCode
zurück.DirectionCode
.public Command getCommand()
public java.lang.String toString()
toString
in class java.lang.Enum<Weiche.TurnDirection>
Copyright © 2011 all committers of this modelrailway project