Class AnticipationDensity.CountAndDistance

  • Enclosing class:
    AnticipationDensity

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

    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 13 mrt. 2018
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Constructor Detail

      • CountAndDistance

        public CountAndDistance()
    • Method Detail

      • getCount

        public int getCount()
        Returns:
        count.
      • increaseCount

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

        public Length getDistance()
        Returns:
        distance.
      • setDistance

        public void setDistance​(Length distance)
        Parameters:
        distance - Length; set distance.