TrafficIncident.RestrictedVehicleCategory (API Reference)
Enum Class TrafficIncident.RestrictedVehicleCategory
- All Implemented Interfaces:
Serializable,Comparable<TrafficIncident.RestrictedVehicleCategory>,Constable
- Enclosing class:
- TrafficIncident
The vehicle categories that can be restricted.
Note, a vehicle can belong to several categories (e.g. a passenger motor car
belongs to CAR, MOTOR_VEHICLE, and ALL).
A vehicle is restricted if it belongs to the category presented in the map TrafficIncident.getVehicleRestrictions()
and at least one of the vehicle properties is under the matching TrafficIncident.VehicleRestriction.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll the vehicles are applicable for this category.Bus.Car.Heavy goods vehicle (or large goods vehicle).Motor vehicle.Motorcycle.Other vehicles.Taxi.Train.Transporting an abnormal size load.Transporting hazardous goods.Truck.Vehicle with trailer. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BUS
Bus.
-
CAR
Car.
-
HEAVY_GOODS_VEHICLE
Heavy goods vehicle (or large goods vehicle). In the European Union heavy goods vehicle is any truck with a gross combination mass (GCM) of over 3,500 kg.
-
TRUCK
Truck.
-
MOTORCYCLE
Motorcycle.
-
MOTOR_VEHICLE
Motor vehicle. Definition: it is a self-propelled vehicle, that does not operate on rails and is used for the transportation of people or cargo.
-
TAXI
Taxi.
-
TRAIN
Train.
-
TRANSPORTING_ABNORMAL_SIZE_LOAD
Transporting an abnormal size load. See rules of the exact country that describe the exact parameters.
-
TRANSPORTING_HAZARDOUS_GOODS
Transporting hazardous goods.
-
VEHICLE_WITH_TRAILER
Vehicle with trailer.
-
OTHER
Other vehicles.
-
ALL
All the vehicles are applicable for this category.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-