Class MeanIntensity
java.lang.Object
org.opentrafficsim.kpi.sampling.indicator.AbstractIndicator<Frequency>
org.opentrafficsim.kpi.sampling.indicator.MeanIntensity
public class MeanIntensity extends AbstractIndicator<Frequency>
Total travel distance divided by the sum of areas (X * T).
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 16 okt. 2016
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors Constructor Description MeanIntensity(TotalTravelDistance travelDistance)
-
Method Summary
Modifier and Type Method Description protected <G extends GtuDataInterface>
Frequencycalculate(Query<G> query, Time startTime, Time endTime, java.util.List<TrajectoryGroup<G>> trajectoryGroups)
Calculate value for given trajectory group.java.lang.String
toString()
Methods inherited from class org.opentrafficsim.kpi.sampling.indicator.AbstractIndicator
getValue, getValue
-
Constructor Details
-
MeanIntensity
- Parameters:
travelDistance
- TotalTravelDistance; travel distance indicator
-
-
Method Details
-
calculate
protected <G extends GtuDataInterface> Frequency calculate(Query<G> query, Time startTime, Time endTime, java.util.List<TrajectoryGroup<G>> trajectoryGroups)Calculate value for given trajectory group.- Specified by:
calculate
in classAbstractIndicator<Frequency>
- 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
public final java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-