C - accumulated typeA - aggregated typepublic static interface Detector.DetectorMeasurement<C,A>
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.
| Modifier and Type | Method and Description |
|---|---|
C |
accumulateEntry(C cumulative,
LaneBasedGTU gtu,
Detector loopDetector)
Returns an accumulated value for when the front reaches the detector.
|
C |
accumulateExit(C cumulative,
LaneBasedGTU gtu,
Detector loopDetector)
Returns an accumulated value for when the rear leaves the detector.
|
A |
aggregate(C cumulative,
int count,
Duration aggregation)
Returns an aggregated value.
|
String |
getName()
Returns the value name.
|
C |
identity()
Returns the initial value before accumulation.
|
boolean |
isPeriodic()
Returns whether the measurement aggregates every aggregation period (or only over the entire simulation).
|
String |
stringValue(A aggregate,
String format)
Returns a string representation of the aggregate result.
|
C identity()
C accumulateEntry(C cumulative, LaneBasedGTU gtu, Detector loopDetector)
cumulative - C; accumulated valuegtu - LaneBasedGTU; gtuloopDetector - Detector; loop detectorC accumulateExit(C cumulative, LaneBasedGTU gtu, Detector loopDetector)
cumulative - C; accumulated valuegtu - LaneBasedGTU; gtuloopDetector - Detector; loop detectorboolean isPeriodic()
A aggregate(C cumulative, int count, Duration aggregation)
cumulative - C; accumulated valuecount - int; GTU countaggregation - Duration; aggregation periodString getName()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.