public enum TmcRichtung extends Enum<TmcRichtung> implements Zustand<Integer>
Enum Constant and Description |
---|
NEGATIV
die Richtung ist Positiv.
|
OHNE
es ist keine Richtung festgelegt.
|
POSITIV
die Richtung ist Positiv.
|
UNDEFINIERT
die Richtung ist nicht definiert.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getCode()
liefert den Code des Zustandes.
|
String |
getName()
Liefert den Namen des Zustandes.
|
static TmcRichtung |
getTyp(int gesuchterCode)
liefert den Typ, der dem übergebenen Code entspricht.
|
static TmcRichtung |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TmcRichtung[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TmcRichtung UNDEFINIERT
public static final TmcRichtung POSITIV
public static final TmcRichtung OHNE
public static final TmcRichtung NEGATIV
public static TmcRichtung[] values()
for (TmcRichtung c : TmcRichtung.values()) System.out.println(c);
public static TmcRichtung valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static TmcRichtung getTyp(int gesuchterCode)
gesuchterCode
- der Code für den ein Zustand gesucht wirdIllegalArgumentException
geworfen.public Integer getCode()
Copyright © 2017 BitCtrl Systems GmbH. All rights reserved.