Class MeanTravelTimePerDistance
java.lang.Object
org.opentrafficsim.kpi.sampling.indicator.AbstractIndicator<Duration>
org.opentrafficsim.kpi.sampling.indicator.MeanTravelTimePerDistance
Inverse of mean 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
Constructors -
Method Summary
Methods inherited from class org.opentrafficsim.kpi.sampling.indicator.AbstractIndicator
getValue, getValue
-
Constructor Details
-
MeanTravelTimePerDistance
Constructor.- Parameters:
meanSpeed- mean speed indicator
-
-
Method Details
-
calculate
protected <G extends GtuData> Duration calculate(Query<G, ?> query, Duration startTime, Duration endTime, List<TrajectoryGroup<G>> trajectoryGroups) Description copied from class:AbstractIndicatorCalculate value for given trajectory groups.- Specified by:
calculatein classAbstractIndicator<Duration>- Type Parameters:
G- GTU data type- Parameters:
query- querystartTime- start time of interval to calculate indicator overendTime- start time of interval to calculate indicator overtrajectoryGroups- groups of trajectories to calculate the indicator for- Returns:
- value for given trajectory groups
-
toString
-