Class MeanTripLength
java.lang.Object
org.opentrafficsim.kpi.sampling.indicator.AbstractIndicator<org.djunits.value.vdouble.scalar.Length>
org.opentrafficsim.kpi.sampling.indicator.MeanTripLength
Sum of trajectory lengths divided by number of GTU's.
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
Modifier and TypeMethodDescriptionprotected <G extends GtuData>
org.djunits.value.vdouble.scalar.Lengthcalculate
(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 groups.toString()
Methods inherited from class org.opentrafficsim.kpi.sampling.indicator.AbstractIndicator
getValue, getValue
-
Constructor Details
-
MeanTripLength
public MeanTripLength()
-
-
Method Details
-
calculate
protected <G extends GtuData> org.djunits.value.vdouble.scalar.Length 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 classAbstractIndicator<org.djunits.value.vdouble.scalar.Length>
- 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
-