Class TotalDelayReference
java.lang.Object
org.opentrafficsim.kpi.sampling.indicator.AbstractIndicator<org.djunits.value.vdouble.scalar.Duration>
org.opentrafficsim.kpi.sampling.indicator.TotalDelayReference
public class TotalDelayReference
extends AbstractIndicator<org.djunits.value.vdouble.scalar.Duration>
Delay based on reference 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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final <G extends GtuData>
org.djunits.value.vdouble.scalar.Durationcalculate
(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.toString()
Methods inherited from class org.opentrafficsim.kpi.sampling.indicator.AbstractIndicator
getValue, getValue
-
Constructor Details
-
TotalDelayReference
public TotalDelayReference()
-
-
Method Details
-
calculate
protected final <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) Calculate value for given trajectory group.- Specified by:
calculate
in classAbstractIndicator<org.djunits.value.vdouble.scalar.Duration>
- Type Parameters:
G
- gtu data type- Parameters:
query
- Query<G, ?>; querystartTime
- Time; start time of interval to calculate indicator overendTime
- Time; start time of interval to calculate indicator overtrajectoryGroups
- List<TrajectoryGroup<G>>; group of trajectories to calculate the indicator for- Returns:
- value for given trajectory group
-
toString
-