Class SpeedInfoCurvature
java.lang.Object
org.opentrafficsim.road.network.speed.SpeedInfoCurvature
- All Implemented Interfaces:
Serializable
Class with curvature info for curvature speed limit type.
Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Wouter Schakel
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal LengthReturns the curvature radius.final SpeedgetSpeedForLateralAcceleration(Acceleration acceleration) Returns the speed for which the current lateral acceleration follows in the corner.final inthashCode()final StringtoString()
-
Constructor Details
-
SpeedInfoCurvature
Constructor with curvature radius.- Parameters:
radius- Length; curvature radius- Throws:
NullPointerException- if radius is null
-
-
Method Details
-
getRadius
Returns the curvature radius.- Returns:
- curvature radius
-
getSpeedForLateralAcceleration
Returns the speed for which the current lateral acceleration follows in the corner.- Parameters:
acceleration- Acceleration; acceleration to result from speed in corner- Returns:
- speed for which the current lateral acceleration follows in the corner
- Throws:
NullPointerException- if acceleration is null
-
hashCode
public final int hashCode() -
equals
-
toString
-