Class VehicleSpecificAccess
Access regulation for a specific vehicle type on a road segment.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
Field Summary
FieldsModifier and TypeFieldDescriptionConditions under which this access regulation is active.booleanIf true, access is only permitted with a special permit.Stores the number of Lanes present, if a truck is not allowed on the innermost lane.Physical structure (e.g. -
Constructor Summary
ConstructorsConstructorDescriptionVehicleSpecificAccess(boolean isPermitBased, PhysicalStructure physicalStructure, VehicleRestrictionCondition condition) Creates a new instance with specified parameters. -
Method Summary
-
Field Details
-
isPermitBased
public boolean isPermitBasedIf true, access is only permitted with a special permit.
-
physicalStructure
Physical structure (e.g. bridge or tunnel) to which this access regulation applies.
-
noTruckInnermostLane
Stores the number of Lanes present, if a truck is not allowed on the innermost lane. If this field is
null, no restriction for innermost laneIf a regulation indicates trucks are not allowed on the innermost lane if the road has three or more lanes, the value “3” is applied as that is the minimum lane count for which the regulation is applicable.
However, there might be cases where multiple innermost lanes are restricted. For example value 3 will be used when vehicles are only allowed to drive the 2 outer most lanes in case of 3 or more lanes motorway.
-
condition
Conditions under which this access regulation is active.
-
-
Constructor Details
-
VehicleSpecificAccess
public VehicleSpecificAccess(boolean isPermitBased, @NonNull PhysicalStructure physicalStructure, @NonNull VehicleRestrictionCondition condition) Creates a new instance with specified parameters.
- Parameters:
isPermitBased-If true, access is only permitted with a special permit.
physicalStructure-Physical structure (e.g. bridge or tunnel) to which this access regulation applies.
condition-Conditions under which this access regulation is active.
-
-
Method Details