T - class of the valuepublic abstract class AbstractIndicator<T extends org.djunits.value.vdouble.scalar.DoubleScalarInterface> extends Object
getValue() for an equal query, start time
and end time.
Copyright (c) 2013-2017 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,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Time endTime,
List<TrajectoryGroup> trajectoryGroups)
Calculate value for given trajectory group.
|
T |
getValue(Query query,
org.djunits.value.vdouble.scalar.Time endTime,
List<TrajectoryGroup> trajectoryGroups)
Get value for given query over time interval, returning earlier calculated value if possible.
|
T |
getValue(Query query,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.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, org.djunits.value.vdouble.scalar.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, org.djunits.value.vdouble.scalar.Time startTime, org.djunits.value.vdouble.scalar.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, org.djunits.value.vdouble.scalar.Time startTime, org.djunits.value.vdouble.scalar.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–2017 Delft University of Technology. All rights reserved.