T - class of the valuepublic abstract class AbstractIndicator<T extends DoubleScalarInterface> extends Object
getValue() for an equal query, start time
and end time.
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
AbstractIndicator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
calculate(Query query,
Time startTime,
Time endTime,
List<TrajectoryGroup> trajectoryGroups)
Calculate value for given trajectory group.
|
T |
getValue(Query query,
Time endTime,
List<TrajectoryGroup> trajectoryGroups)
Get value for given query over time interval, returning earlier calculated value if possible.
|
T |
getValue(Query query,
Time startTime,
Time endTime,
List<TrajectoryGroup> trajectoryGroups)
Get value for given query over time interval, returning earlier calculated value if possible.
|
public final T getValue(Query query, Time endTime, List<TrajectoryGroup> trajectoryGroups)
Time.ZERO as start time.query - queryendTime - start time of interval to calculate indicator overtrajectoryGroups - group of trajectories to calculate the indicator forpublic final T getValue(Query query, Time startTime, Time endTime, List<TrajectoryGroup> trajectoryGroups)
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 forprotected abstract T calculate(Query query, Time startTime, Time endTime, List<TrajectoryGroup> trajectoryGroups)
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–2018 Delft University of Technology. All rights reserved.