Class SpeedLimitUtil
java.lang.Object
org.opentrafficsim.road.gtu.tactical.util.SpeedLimitUtil
Static methods regarding speed limits for composition in tactical planners.
Copyright (c) 2013-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParameterTypeAccelerationMaximum comfortable acceleration in the lateral direction. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.djunits.value.vdouble.scalar.AccelerationconsiderSpeedLimitTransitions(TacticalContextEgo context, RelativeLane lane) Acceleration for speed limit transitions.static org.djunits.value.vdouble.scalar.SpeedgetDesiredSpeedProxy(SpeedLimits speedLimits, org.djunits.value.vdouble.scalar.Speed maxVehicleSpeed) Returns desired speed proxy as the minimum of maximum vehicle speed and present speed limits.static org.djunits.value.vdouble.scalar.SpeedgetSpeedForLateralAcceleration(org.djunits.value.vdouble.scalar.Length radius, org.djunits.value.vdouble.scalar.Acceleration acceleration) Returns the speed for which the given lateral acceleration follows in the curve.
-
Field Details
-
A_LAT
Maximum comfortable acceleration in the lateral direction.
-
-
Method Details
-
getSpeedForLateralAcceleration
public static org.djunits.value.vdouble.scalar.Speed getSpeedForLateralAcceleration(org.djunits.value.vdouble.scalar.Length radius, org.djunits.value.vdouble.scalar.Acceleration acceleration) Returns the speed for which the given lateral acceleration follows in the curve.- Parameters:
radius- curve radiusacceleration- acceleration to result from speed in curve- Returns:
- speed for which the given lateral acceleration follows in the curve
- Throws:
IllegalArgumentException- if radius or acceleration is negative or zero
-
considerSpeedLimitTransitions
public static org.djunits.value.vdouble.scalar.Acceleration considerSpeedLimitTransitions(TacticalContextEgo context, RelativeLane lane) throws ParameterException, OperationalPlanException Acceleration for speed limit transitions. This implementation decelerates before curves and speed bumps. For this it usesapproachTargetSpeed()of the car-following utility. 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:
context- tactical information such as parameters and car-following modellane- lane to consider- Returns:
- acceleration for speed limit transitions
- Throws:
ParameterException- if a required parameter is not foundOperationalPlanException- if there is no infrastructure perception
-
getDesiredSpeedProxy
public static org.djunits.value.vdouble.scalar.Speed getDesiredSpeedProxy(SpeedLimits speedLimits, org.djunits.value.vdouble.scalar.Speed maxVehicleSpeed) Returns desired speed proxy as the minimum of maximum vehicle speed and present speed limits.- Parameters:
speedLimits- speed limitsmaxVehicleSpeed- maximum vehicle speed- Returns:
- desired speed proxy
-