Package org.opentrafficsim.core.network
Enum LinkType.DEFAULTS
- java.lang.Object
-
- java.lang.Enum<LinkType.DEFAULTS>
-
- org.opentrafficsim.core.network.LinkType.DEFAULTS
-
- All Implemented Interfaces:
Serializable
,Comparable<LinkType.DEFAULTS>
- Enclosing class:
- LinkType
public static enum LinkType.DEFAULTS extends Enum<LinkType.DEFAULTS>
Default types with their name.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTOR
Virtual connection between nodes, e.g.FREEWAY
One-directional road, accessible to all road GTU types (excluding PEDESTRIAN and BICYCLE).NONE
The link type that does not allow any vehicles, or pedestrians.RAILWAY
Two-directional rail link.ROAD
Two-directional road, accessible to all road GTU types (including PEDESTRIAN).WATERWAY
Two-directional water way.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
static LinkType.DEFAULTS
valueOf(String name)
Returns the enum constant of this type with the specified name.static LinkType.DEFAULTS[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final LinkType.DEFAULTS NONE
The link type that does not allow any vehicles, or pedestrians.
-
ROAD
public static final LinkType.DEFAULTS ROAD
Two-directional road, accessible to all road GTU types (including PEDESTRIAN).
-
FREEWAY
public static final LinkType.DEFAULTS FREEWAY
One-directional road, accessible to all road GTU types (excluding PEDESTRIAN and BICYCLE).
-
WATERWAY
public static final LinkType.DEFAULTS WATERWAY
Two-directional water way.
-
RAILWAY
public static final LinkType.DEFAULTS RAILWAY
Two-directional rail link.
-
CONNECTOR
public static final LinkType.DEFAULTS CONNECTOR
Virtual connection between nodes, e.g. to distribute demand.
-
-
Method Detail
-
values
public static LinkType.DEFAULTS[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LinkType.DEFAULTS c : LinkType.DEFAULTS.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LinkType.DEFAULTS valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
public String getId()
- Returns:
- the id
-
-