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-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 |
---|
AbstractIndicator() |
Modifier and Type | Method and Description |
---|---|
protected T |
calculate(Query query,
org.djunits.value.vdouble.scalar.Time endTime)
Calculate value for given query until given time.
|
protected abstract T |
calculate(Query query,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Time endTime)
Calculate value for given query over time interval.
|
T |
getValue(Query query,
org.djunits.value.vdouble.scalar.Time endTime)
Get value for given query until given time, returning earlier calculated value if possible.
|
T |
getValue(Query query,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Time endTime)
Get value for given query over time interval, returning earlier calculated value if possible.
|
public T getValue(Query query, org.djunits.value.vdouble.scalar.Time endTime)
query
- queryendTime
- start time of interval to calculate indicator overpublic final T getValue(Query query, org.djunits.value.vdouble.scalar.Time startTime, org.djunits.value.vdouble.scalar.Time endTime)
query
- querystartTime
- start time of interval to calculate indicator overendTime
- start time of interval to calculate indicator overprotected T calculate(Query query, org.djunits.value.vdouble.scalar.Time endTime)
query
- queryendTime
- start time of interval to calculate indicator overprotected abstract T calculate(Query query, org.djunits.value.vdouble.scalar.Time startTime, org.djunits.value.vdouble.scalar.Time endTime)
query
- querystartTime
- start time of interval to calculate indicator overendTime
- start time of interval to calculate indicator overCopyright © 2014–2016 Delft University of Technology. All rights reserved.