Class TotalTravelTime

java.lang.Object
org.opentrafficsim.kpi.sampling.indicator.AbstractIndicator<Duration>
org.opentrafficsim.kpi.sampling.indicator.TotalTravelTime

public class TotalTravelTime
extends AbstractIndicator<Duration>
Sum of trajectory durations.

Copyright (c) 2013-2019 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 Sep 22, 2016
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Summary

    Constructors 
    Constructor Description
    TotalTravelTime()  
  • Method Summary

    Modifier and Type Method Description
    protected <G extends GtuDataInterface>
    Duration
    calculate​(Query<G> query, Time startTime, Time endTime, java.util.List<TrajectoryGroup<G>> trajectoryGroups)
    Calculate value for given trajectory group.
    java.lang.String toString()

    Methods inherited from class org.opentrafficsim.kpi.sampling.indicator.AbstractIndicator

    getValue, getValue

    Methods inherited from class java.lang.Object

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

  • Method Details

    • calculate

      protected <G extends GtuDataInterface> Duration calculate​(Query<G> query, Time startTime, Time endTime, java.util.List<TrajectoryGroup<G>> trajectoryGroups)
      Calculate value for given trajectory group.
      Specified by:
      calculate in class AbstractIndicator<Duration>
      Type Parameters:
      G - gtu data type
      Parameters:
      query - Query<G>; query
      startTime - Time; start time of interval to calculate indicator over
      endTime - Time; start time of interval to calculate indicator over
      trajectoryGroups - List<TrajectoryGroup<G>>; group of trajectories to calculate the indicator for
      Returns:
      value for given trajectory group
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object