public enum RdsTMCRichtung extends Enum<RdsTMCRichtung> implements Zustand<Integer>
Enum Constant and Description |
---|
NEGATIV
Richtung negativ, Wert 1.
|
POSITIV
Richtung positiv, Wert 0.
|
Modifier and Type | Field and Description |
---|---|
private int |
code
der Code des Zustandes.
|
private String |
name
der Name des Zustandes.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getCode()
liefert den Code des Zustandes.
|
String |
getName()
liefert den Namen des Zustandes.
|
static RdsTMCRichtung |
getStatus(int gesuchterCode)
liefert die Rds-TMC-Richtung mit dem übergebenen Code.
|
static RdsTMCRichtung |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RdsTMCRichtung[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RdsTMCRichtung POSITIV
public static final RdsTMCRichtung NEGATIV
private int code
private String name
public static RdsTMCRichtung[] values()
for (RdsTMCRichtung c : RdsTMCRichtung.values()) System.out.println(c);
public static RdsTMCRichtung 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 RdsTMCRichtung getStatus(int gesuchterCode)
gesuchterCode
- der Code für den ein Zustand gesucht wird.public Integer getCode()
Copyright © 2017 BitCtrl Systems GmbH. All rights reserved.