public class MeanSpeed extends AbstractIndicator<org.djunits.value.vdouble.scalar.Speed>
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
MeanSpeed(TotalTravelDistance travelDistance,
TotalTravelTime travelTime) |
Modifier and Type | Method and Description |
---|---|
org.djunits.value.vdouble.scalar.Speed |
calculate(Query query,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Time endTime,
List<TrajectoryGroup> trajectoryGroups)
Calculate value for given trajectory group.
|
String |
toString() |
getValue, getValue
public MeanSpeed(TotalTravelDistance travelDistance, TotalTravelTime travelTime)
travelDistance
- travel distance indicatortravelTime
- travel time indicatorpublic final org.djunits.value.vdouble.scalar.Speed calculate(Query query, org.djunits.value.vdouble.scalar.Time startTime, org.djunits.value.vdouble.scalar.Time endTime, List<TrajectoryGroup> trajectoryGroups)
calculate
in class AbstractIndicator<org.djunits.value.vdouble.scalar.Speed>
query
- querystartTime
- start time of interval to calculate indicator overendTime
- start time of interval to calculate indicator overtrajectoryGroups
- group of trajectories to calculate the indicator forCopyright © 2014–2017 Delft University of Technology. All rights reserved.