public final class SpeedLimitUtil extends Object
Copyright (c) 2013-2017 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 org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeAcceleration |
A_LAT
Maximum comfortable acceleration in the lateral direction.
|
Modifier and Type | Method and Description |
---|---|
static org.djunits.value.vdouble.scalar.Acceleration |
considerSpeedLimitTransitions(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
org.djunits.value.vdouble.scalar.Speed speed,
SpeedLimitProspect speedLimitProspect,
CarFollowingModel carFollowingModel)
Acceleration for speed limit transitions.
|
static org.djunits.value.vdouble.scalar.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 org.djunits.value.vdouble.scalar.Speed |
getMaximumVehicleSpeed(SpeedLimitInfo speedLimitInfo)
Returns the speed of speed limit type MAX_VEHICLE_SPEED.
|
public static final org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeAcceleration A_LAT
public static org.djunits.value.vdouble.scalar.Speed getLegalSpeedLimit(SpeedLimitInfo speedLimitInfo)
speedLimitInfo
- speed limit infoNullPointerException
- if speed limit info is nullpublic static org.djunits.value.vdouble.scalar.Speed getMaximumVehicleSpeed(SpeedLimitInfo speedLimitInfo)
speedLimitInfo
- speed limit infoNullPointerException
- if speed limit info is nullpublic static org.djunits.value.vdouble.scalar.Acceleration considerSpeedLimitTransitions(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitProspect speedLimitProspect, CarFollowingModel carFollowingModel) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.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.behavioralCharacteristics
- behavioral characteristicsspeed
- current speedspeedLimitProspect
- speed limit prospectcarFollowingModel
- car following modelorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if a required parameter is not foundCopyright © 2014–2017 Delft University of Technology. All rights reserved.