Enum TrafficIncident.RestrictedVehicleCategory
Enum TrafficIncident.RestrictedVehicleCategory
- java.lang.Object
-
- java.lang.Enum<TrafficIncident.RestrictedVehicleCategory>
-
- com.here.sdk.traffic.TrafficIncident.RestrictedVehicleCategory
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TrafficIncident.RestrictedVehicleCategory>
- Enclosing class:
- TrafficIncident
public static enum TrafficIncident.RestrictedVehicleCategory extends java.lang.Enum<TrafficIncident.RestrictedVehicleCategory>
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, andALL). A vehicle is restricted if it belongs to the category presented in the mapTrafficIncident.getVehicleRestrictions()and at least one of the vehicle properties is under the matchingTrafficIncident.VehicleRestriction.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLAll the vehicles are applicable for this category.BUSBus.CARCar.HEAVY_GOODS_VEHICLEHeavy goods vehicle (or large goods vehicle).MOTOR_VEHICLEMotor vehicle.MOTORCYCLEMotorcycle.OTHEROther vehicles.TAXITaxi.TRAINTrain.TRANSPORTING_ABNORMAL_SIZE_LOADTransporting an abnormal size load.TRANSPORTING_HAZARDOUS_GOODSTransporting hazardous goods.TRUCKTruck.VEHICLE_WITH_TRAILERVehicle with trailer.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TrafficIncident.RestrictedVehicleCategoryvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TrafficIncident.RestrictedVehicleCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BUS
public static final TrafficIncident.RestrictedVehicleCategory BUS
Bus.
-
CAR
public static final TrafficIncident.RestrictedVehicleCategory CAR
Car.
-
HEAVY_GOODS_VEHICLE
public static final TrafficIncident.RestrictedVehicleCategory 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
public static final TrafficIncident.RestrictedVehicleCategory TRUCK
Truck.
-
MOTORCYCLE
public static final TrafficIncident.RestrictedVehicleCategory MOTORCYCLE
Motorcycle.
-
MOTOR_VEHICLE
public static final TrafficIncident.RestrictedVehicleCategory 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
public static final TrafficIncident.RestrictedVehicleCategory TAXI
Taxi.
-
TRAIN
public static final TrafficIncident.RestrictedVehicleCategory TRAIN
Train.
-
TRANSPORTING_ABNORMAL_SIZE_LOAD
public static final TrafficIncident.RestrictedVehicleCategory TRANSPORTING_ABNORMAL_SIZE_LOAD
Transporting an abnormal size load. See rules of the exact country that describe the exact parameters.
-
TRANSPORTING_HAZARDOUS_GOODS
public static final TrafficIncident.RestrictedVehicleCategory TRANSPORTING_HAZARDOUS_GOODS
Transporting hazardous goods.
-
VEHICLE_WITH_TRAILER
public static final TrafficIncident.RestrictedVehicleCategory VEHICLE_WITH_TRAILER
Vehicle with trailer.
-
OTHER
public static final TrafficIncident.RestrictedVehicleCategory OTHER
Other vehicles.
-
ALL
public static final TrafficIncident.RestrictedVehicleCategory ALL
All the vehicles are applicable for this category.
-
-
Method Detail
-
values
public static TrafficIncident.RestrictedVehicleCategory[] 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 (TrafficIncident.RestrictedVehicleCategory c : TrafficIncident.RestrictedVehicleCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TrafficIncident.RestrictedVehicleCategory valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-