Class AccelerationStep
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.following.AccelerationStep
- All Implemented Interfaces:
java.io.Serializable
public class AccelerationStep
extends java.lang.Object
implements java.io.Serializable
Storage for the result of a GTU following model.
Currently the result is restricted to a constant acceleration during the period of validity (the time slot) of the result.
Currently the result is restricted to a constant acceleration during the period of validity (the time slot) of the result.
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: 1378 $, $LastChangedDate: 2015-09-03 13:38:01 +0200 (Thu, 03 Sep 2015) $, by $Author: averbraeck $,
initial version 6 feb. 2015
- Author:
- Alexander Verbraeck, Peter Knoppers
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description AccelerationStep(Acceleration acceleration, Time validUntil, Duration duration)
Create a new GTUFollowingModelResult. -
Method Summary
Modifier and Type Method Description Acceleration
getAcceleration()
Duration
getDuration()
Time
getValidUntil()
java.lang.String
toString()
-
Constructor Details
-
AccelerationStep
Create a new GTUFollowingModelResult.- Parameters:
acceleration
- Acceleration; computed accelerationvalidUntil
- Time; time when this result expiresduration
- Duration; duration of the time step
-
-
Method Details
-
getAcceleration
- Returns:
- acceleration.
-
getValidUntil
- Returns:
- validUntil.
-
getDuration
- Returns:
- duration.
-
toString
public final java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-