public interface Anticipation
Form of anticipation.

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

    Fields
    Modifier and Type
    Field
    Description
    static final Anticipation
    Assume constant acceleration.
    static final Anticipation
    Assume constant speed.
    static final Anticipation
    Assume no anticipation.
  • Method Summary

    Modifier and Type
    Method
    Description
    anticipate(NeighborTriplet neighborTriplet, org.djunits.value.vdouble.scalar.Duration duration, org.djunits.value.vdouble.scalar.Length traveledDistanceReference, boolean downstream)
    Anticipate movement.
  • Field Details

    • NONE

      static final Anticipation NONE
      Assume no anticipation.
    • CONSTANT_SPEED

      static final Anticipation CONSTANT_SPEED
      Assume constant speed.
    • CONSTANT_ACCELERATION

      static final Anticipation CONSTANT_ACCELERATION
      Assume constant acceleration.
  • Method Details

    • anticipate

      NeighborTriplet anticipate(NeighborTriplet neighborTriplet, org.djunits.value.vdouble.scalar.Duration duration, org.djunits.value.vdouble.scalar.Length traveledDistanceReference, boolean downstream)
      Anticipate movement.
      Parameters:
      neighborTriplet - headway, speed and acceleration
      duration - duration
      traveledDistanceReference - distance the reference object traveled during the anticipation time
      downstream - whether the perceived GTU is downstream
      Returns:
      anticipated info