Class MeanTripLength

java.lang.Object
org.opentrafficsim.kpi.sampling.indicator.AbstractIndicator<Length>
org.opentrafficsim.kpi.sampling.indicator.MeanTripLength

public class MeanTripLength extends AbstractIndicator<Length>
Sum of trajectory lengths divided by number of GTU's.

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, Wouter Schakel
  • Constructor Details

    • MeanTripLength

      public MeanTripLength()
      Constructor.
  • Method Details

    • calculate

      protected <G extends GtuData> Length calculate(Query<G,?> query, Duration startTime, Duration endTime, List<TrajectoryGroup<G>> trajectoryGroups)
      Description copied from class: AbstractIndicator
      Calculate value for given trajectory groups.
      Specified by:
      calculate in class AbstractIndicator<Length>
      Type Parameters:
      G - GTU data type
      Parameters:
      query - query
      startTime - start time of interval to calculate indicator over
      endTime - start time of interval to calculate indicator over
      trajectoryGroups - groups of trajectories to calculate the indicator for
      Returns:
      value for given trajectory groups
    • toString

      public String toString()
      Overrides:
      toString in class Object