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-2019 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 <G extends GtuDataInterface> |
calculate(Query<G> query,
Time startTime,
Time endTime,
List<TrajectoryGroup<G>> trajectoryGroups)
Calculate value for given trajectory group.
|
<G extends GtuDataInterface> |
getValue(Query<G> query,
Time endTime,
List<TrajectoryGroup<G>> trajectoryGroups)
Get value for given query over time interval, returning earlier calculated value if possible.
|
<G extends GtuDataInterface> |
getValue(Query<G> query,
Time startTime,
Time endTime,
List<TrajectoryGroup<G>> trajectoryGroups)
Get value for given query over time interval, returning earlier calculated value if possible.
|
public final <G extends GtuDataInterface> T getValue(Query<G> query, Time endTime, List<TrajectoryGroup<G>> trajectoryGroups)
Time.ZERO as start time.G - gtu data typequery - Query<G>; queryendTime - Time; start time of interval to calculate indicator overtrajectoryGroups - List<TrajectoryGroup<G>>; group of trajectories to calculate the indicator forpublic final <G extends GtuDataInterface> T getValue(Query<G> query, Time startTime, Time endTime, List<TrajectoryGroup<G>> trajectoryGroups)
G - gtu data typequery - 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 forprotected abstract <G extends GtuDataInterface> T calculate(Query<G> query, Time startTime, Time endTime, List<TrajectoryGroup<G>> trajectoryGroups)
G - gtu data typequery - 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 forCopyright © 2014–2019 Delft University of Technology. All rights reserved.