public final class SpeedLimitUtil extends Object
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Field and Description |
---|---|
static ParameterTypeAcceleration |
A_LAT
Maximum comfortable acceleration in the lateral direction.
|
Modifier and Type | Method and Description |
---|---|
static Acceleration |
considerSpeedLimitTransitions(Parameters parameters,
Speed speed,
SpeedLimitProspect speedLimitProspect,
CarFollowingModel carFollowingModel)
Acceleration for speed limit transitions.
|
static Speed |
getLegalSpeedLimit(SpeedLimitInfo speedLimitInfo)
Returns the minimum speed of the applicable speed limit types MAX_LEGAL_VEHICLE_SPEED, ROAD_CLASS, FIXED_SIGN and
DYNAMIC_SIGN.
|
static Speed |
getMaximumVehicleSpeed(SpeedLimitInfo speedLimitInfo)
Returns the speed of speed limit type MAX_VEHICLE_SPEED.
|
public static final ParameterTypeAcceleration A_LAT
public static Speed getLegalSpeedLimit(SpeedLimitInfo speedLimitInfo)
speedLimitInfo
- speed limit infoNullPointerException
- if speed limit info is nullpublic static Speed getMaximumVehicleSpeed(SpeedLimitInfo speedLimitInfo)
speedLimitInfo
- speed limit infoNullPointerException
- if speed limit info is nullpublic static Acceleration considerSpeedLimitTransitions(Parameters parameters, Speed speed, SpeedLimitProspect speedLimitProspect, CarFollowingModel carFollowingModel) throws ParameterException
approachTargetSpeed()
of the abstract car-following model implementation. All remaining transitions happen in the
default manner, i.e. deceleration and acceleration after the speed limit change and governed by the car-following model.parameters
- parametersspeed
- current speedspeedLimitProspect
- speed limit prospectcarFollowingModel
- car following modelParameterException
- if a required parameter is not foundCopyright © 2014–2018 Delft University of Technology. All rights reserved.