public enum StrassenKnotenTyp extends Enum<StrassenKnotenTyp> implements Zustand<Integer>
Enum Constant and Description |
---|
AUTOBAHNANSCHLUSS
eine Autobahnanschlussstelle.
|
AUTOBAHNDREIECK
ein Autobahndreicek.
|
AUTOBAHNENDE
ein Autobahnende.
|
AUTOBAHNKREUZ
ein Autobahnkreuz.
|
SONSTIG
Allgemeiner nicht näher definierter Knoten.
|
Modifier and Type | Field and Description |
---|---|
private int |
code
der Code des Zustandes.
|
private String |
name
die Bezeichnung des Zustandes.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getCode()
liefert den Code des Zustandes.
|
String |
getName()
Liefert den Namen des Zustandes.
|
static StrassenKnotenTyp |
getTyp(int gesuchterCode)
liefert den Straßenknotentyp, der dem übergebenen Code entspricht.
|
static StrassenKnotenTyp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StrassenKnotenTyp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StrassenKnotenTyp SONSTIG
public static final StrassenKnotenTyp AUTOBAHNKREUZ
public static final StrassenKnotenTyp AUTOBAHNDREIECK
public static final StrassenKnotenTyp AUTOBAHNANSCHLUSS
public static final StrassenKnotenTyp AUTOBAHNENDE
private int code
private String name
public static StrassenKnotenTyp[] values()
for (StrassenKnotenTyp c : StrassenKnotenTyp.values()) System.out.println(c);
public static StrassenKnotenTyp 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 StrassenKnotenTyp getTyp(int gesuchterCode)
gesuchterCode
- der Code, für den ein StraßenknotenIllegalArgumentException
geworfen.public Integer getCode()
Copyright © 2017 BitCtrl Systems GmbH. All rights reserved.