Class AnticipationDensity.CountAndDistance

java.lang.Object
org.opentrafficsim.road.gtu.perception.categories.AnticipationDensity.CountAndDistance
Enclosing class:
AnticipationDensity

public static class AnticipationDensity.CountAndDistance extends Object
Intermediate data to determine density.

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
  • Constructor Details

    • CountAndDistance

      public CountAndDistance()
      Constructor.
  • Method Details

    • getCount

      public int getCount()
      Returns count.
      Returns:
      count.
    • increaseCount

      public void increaseCount()
      Increases the GTU count by 1.
    • getDistance

      public org.djunits.value.vdouble.scalar.Length getDistance()
      Returns distance.
      Returns:
      distance.
    • setDistance

      public void setDistance(org.djunits.value.vdouble.scalar.Length distance)
      Sets distance.
      Parameters:
      distance - set distance.