Class TotalDelay

java.lang.Object
org.opentrafficsim.kpi.sampling.indicator.AbstractIndicator<org.djunits.value.vdouble.scalar.Duration>
org.opentrafficsim.kpi.sampling.indicator.TotalDelay

public class TotalDelay extends AbstractIndicator<org.djunits.value.vdouble.scalar.Duration>
Sum of trajectory delays relative to a reference speed that can be specified per lane.

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

    • TotalDelay

      public TotalDelay(org.djunits.value.vdouble.scalar.Speed referenceSpeed)
      Constructor using fixed reference speed.
      Parameters:
      referenceSpeed - reference speed for delay
    • TotalDelay

      public TotalDelay(BiFunction<LaneData<?>,String,org.djunits.value.vdouble.scalar.Speed> referenceSpeedProvider)
      Constructor using reference speed provider.
      Parameters:
      referenceSpeedProvider - reference speed provider
  • Method Details

    • calculate

      protected <G extends GtuData> org.djunits.value.vdouble.scalar.Duration calculate(Query<G,?> query, org.djunits.value.vdouble.scalar.Time startTime, org.djunits.value.vdouble.scalar.Time endTime, List<TrajectoryGroup<G>> trajectoryGroups)
      Description copied from class: AbstractIndicator
      Calculate value for given trajectory groups.
      Specified by:
      calculate in class AbstractIndicator<org.djunits.value.vdouble.scalar.Duration>
      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