Class TotalNumberOfStops

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

public class TotalNumberOfStops extends AbstractIndicator<org.djunits.value.vdouble.scalar.Dimensionless>
Sum of measurements with zero speed, preceded by a non-zero speed.

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

    • TotalNumberOfStops

      public TotalNumberOfStops()
  • Method Details

    • calculate

      protected <G extends GtuData> org.djunits.value.vdouble.scalar.Dimensionless calculate(Query<G,?> query, org.djunits.value.vdouble.scalar.Time startTime, org.djunits.value.vdouble.scalar.Time endTime, List<TrajectoryGroup<G>> trajectoryGroups)
      Calculate value for given trajectory group.
      Specified by:
      calculate in class AbstractIndicator<org.djunits.value.vdouble.scalar.Dimensionless>
      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 String toString()
      Overrides:
      toString in class Object