Package org.planit.tntp.enums
Enum NetworkFileColumns
- java.lang.Object
-
- java.lang.Enum<NetworkFileColumns>
-
- org.planit.tntp.enums.NetworkFileColumns
-
- All Implemented Interfaces:
Serializable
,Comparable<NetworkFileColumns>
public enum NetworkFileColumns extends Enum<NetworkFileColumns>
Enumeration giving roles of columns in TNTP network input file- Author:
- gman6028
-
-
Enum Constant Summary
Enum Constants Enum Constant Description B
CAPACITY_PER_LANE
CRITICAL_SPEED
DOWNSTREAM_NODE_ID
FREE_FLOW_TRAVEL_TIME
LENGTH
LINK_TYPE
MAXIMUM_SPEED
NUMBER_OF_LANES
POWER
TOLL
UPSTREAM_NODE_ID
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NetworkFileColumns
valueOf(String name)
Returns the enum constant of this type with the specified name.static NetworkFileColumns[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UPSTREAM_NODE_ID
public static final NetworkFileColumns UPSTREAM_NODE_ID
-
DOWNSTREAM_NODE_ID
public static final NetworkFileColumns DOWNSTREAM_NODE_ID
-
CAPACITY_PER_LANE
public static final NetworkFileColumns CAPACITY_PER_LANE
-
LENGTH
public static final NetworkFileColumns LENGTH
-
MAXIMUM_SPEED
public static final NetworkFileColumns MAXIMUM_SPEED
-
LINK_TYPE
public static final NetworkFileColumns LINK_TYPE
-
B
public static final NetworkFileColumns B
-
POWER
public static final NetworkFileColumns POWER
-
TOLL
public static final NetworkFileColumns TOLL
-
FREE_FLOW_TRAVEL_TIME
public static final NetworkFileColumns FREE_FLOW_TRAVEL_TIME
-
CRITICAL_SPEED
public static final NetworkFileColumns CRITICAL_SPEED
-
NUMBER_OF_LANES
public static final NetworkFileColumns NUMBER_OF_LANES
-
-
Method Detail
-
values
public static NetworkFileColumns[] 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 (NetworkFileColumns c : NetworkFileColumns.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NetworkFileColumns 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
-
-