public enum StoerfallSituation extends java.lang.Enum<StoerfallSituation> implements Zustand<java.lang.Integer>
Enum Constant and Description |
---|
DICHTER_VERKEHR
es herrscht dichter Verkehr.
|
FREIER_VERKEHR
es herrscht freier Verkehr.
|
KEINE_AUSSAGE
der Indikator kann keine Aussage zum aktuellen
Verkehrszustand liefern.
|
LEBHAFTER_VERKEHR
es herrscht lebhafter Verkehr.
|
STAU
es ist Stau.
|
STOCKENDER_VERKEHR
es herrscht stockender Verkehr.
|
STOERUNG
der Störfallindikator ist gestört.
|
UNBEKANNT
der Datenverteiler hat keine Daten zum Indikator geliefert.
|
ZAEHER_VERKEHR
es herrscht zähfliessender Verkehr.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getCode()
liefert den Code des Zustandes.
|
java.lang.String |
getName()
liefert den Namen des Zustandes.
|
static StoerfallSituation |
getSituation(int gesuchterCode)
liefert den Störfallzustand mit dem übergebenen Code.
|
java.lang.String |
toString() |
static StoerfallSituation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StoerfallSituation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StoerfallSituation UNBEKANNT
public static final StoerfallSituation STOERUNG
public static final StoerfallSituation KEINE_AUSSAGE
public static final StoerfallSituation FREIER_VERKEHR
public static final StoerfallSituation LEBHAFTER_VERKEHR
public static final StoerfallSituation DICHTER_VERKEHR
public static final StoerfallSituation ZAEHER_VERKEHR
public static final StoerfallSituation STOCKENDER_VERKEHR
public static final StoerfallSituation STAU
public static StoerfallSituation[] values()
for (StoerfallSituation c : StoerfallSituation.values()) System.out.println(c);
public static StoerfallSituation 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 static StoerfallSituation getSituation(int gesuchterCode)
gesuchterCode
- der Code für den ein Zustand gesucht wird.IllegalArgumentException
geworfen.public java.lang.Integer getCode()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Enum<StoerfallSituation>