Class AccelerationStep

java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.following.AccelerationStep
All Implemented Interfaces:
Serializable

public class AccelerationStep extends Object implements 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.

Copyright (c) 2013-2024 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
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    AccelerationStep(org.djunits.value.vdouble.scalar.Acceleration acceleration, org.djunits.value.vdouble.scalar.Time validUntil, org.djunits.value.vdouble.scalar.Duration duration)
    Create a new GtuFollowingModelResult.
  • Method Summary

    Modifier and Type
    Method
    Description
    final org.djunits.value.vdouble.scalar.Acceleration
     
    final org.djunits.value.vdouble.scalar.Duration
     
    final org.djunits.value.vdouble.scalar.Time
     
    final String

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AccelerationStep

      public AccelerationStep(org.djunits.value.vdouble.scalar.Acceleration acceleration, org.djunits.value.vdouble.scalar.Time validUntil, org.djunits.value.vdouble.scalar.Duration duration)
      Create a new GtuFollowingModelResult.
      Parameters:
      acceleration - Acceleration; computed acceleration
      validUntil - Time; time when this result expires
      duration - Duration; duration of the time step
  • Method Details

    • getAcceleration

      public final org.djunits.value.vdouble.scalar.Acceleration getAcceleration()
      Returns:
      acceleration.
    • getValidUntil

      public final org.djunits.value.vdouble.scalar.Time getValidUntil()
      Returns:
      validUntil.
    • getDuration

      public final org.djunits.value.vdouble.scalar.Duration getDuration()
      Returns:
      duration.
    • toString

      public final String toString()
      Overrides:
      toString in class Object