Class SpeedInfoCurvature
- java.lang.Object
-
- org.opentrafficsim.road.network.speed.SpeedInfoCurvature
-
- All Implemented Interfaces:
java.io.Serializable
public class SpeedInfoCurvature extends java.lang.Object implements java.io.SerializableClass with curvature info for curvature speed limit type.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version Apr 30, 2016
- Author:
- Alexander Verbraeck, Wouter Schakel
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpeedInfoCurvature(Length radius)Constructor with curvature radius.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)LengthgetRadius()Returns the curvature radius.SpeedgetSpeedForLateralAcceleration(Acceleration acceleration)Returns the speed for which the current lateral acceleration follows in the corner.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
SpeedInfoCurvature
public SpeedInfoCurvature(Length radius)
Constructor with curvature radius.- Parameters:
radius- Length; curvature radius- Throws:
java.lang.NullPointerException- if radius is null
-
-
Method Detail
-
getRadius
public final Length getRadius()
Returns the curvature radius.- Returns:
- curvature radius
-
getSpeedForLateralAcceleration
public final Speed getSpeedForLateralAcceleration(Acceleration acceleration)
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:
java.lang.NullPointerException- if acceleration is null
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public final boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-