Package org.opentrafficsim.core.gtu
Enum GTUType.DEFAULTS
- All Implemented Interfaces:
Serializable,Comparable<GTUType.DEFAULTS>,java.lang.constant.Constable
- Enclosing class:
- GTUType
public static enum GTUType.DEFAULTS extends Enum<GTUType.DEFAULTS>
Default types with their name.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description BICYCLESuper type for bicycle.BUSSuper type for busses.CARSuper type for cars.EMERGENCY_VEHICLESuper type for emergency vehicles.MOPEDSuper type for mopeds.PEDESTRIANSuper type for pedestrians.RAILWAY_USERSuper type for all rail users.ROAD_USERSuper type for all road users.SCHEDULED_BUSSuper type for scheduled busses.SHIPSuper type for ships.TRAINSuper type for trains.TRUCKSuper type for trucks.VANSuper type for vans.VEHICLESuper type for vehicles.WATERWAY_USERSuper type for all water way users. -
Method Summary
Modifier and Type Method Description StringgetId()GTUType.DEFAULTSgetParent()static GTUType.DEFAULTSvalueOf(String name)Returns the enum constant of this type with the specified name.static GTUType.DEFAULTS[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ROAD_USER
Super type for all road users. -
WATERWAY_USER
Super type for all water way users. -
RAILWAY_USER
Super type for all rail users. -
PEDESTRIAN
Super type for pedestrians. -
BICYCLE
Super type for bicycle. -
MOPED
Super type for mopeds. -
VEHICLE
Super type for vehicles. -
EMERGENCY_VEHICLE
Super type for emergency vehicles. -
SHIP
Super type for ships. -
TRAIN
Super type for trains. -
CAR
Super type for cars. -
VAN
Super type for vans. -
BUS
Super type for busses. -
TRUCK
Super type for trucks. -
SCHEDULED_BUS
Super type for scheduled busses.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
- Returns:
- the id
-
getParent
- Returns:
- the parent
-