public static class Detector.PlatoonSizes extends Object implements Detector.DetectorMeasurement<org.opentrafficsim.road.network.lane.object.sensor.Detector.PlatoonMeasurement,List<Integer>>
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 |
|---|
PlatoonSizes(Duration threshold)
Constructor.
|
public PlatoonSizes(Duration threshold)
threshold - Duration; maximum time between two vehicles that are considered to be in the same platoonpublic org.opentrafficsim.road.network.lane.object.sensor.Detector.PlatoonMeasurement identity()
identity in interface Detector.DetectorMeasurement<org.opentrafficsim.road.network.lane.object.sensor.Detector.PlatoonMeasurement,List<Integer>>public org.opentrafficsim.road.network.lane.object.sensor.Detector.PlatoonMeasurement accumulateEntry(org.opentrafficsim.road.network.lane.object.sensor.Detector.PlatoonMeasurement cumulative, LaneBasedGTU gtu, Detector loopDetector)
accumulateEntry in interface Detector.DetectorMeasurement<org.opentrafficsim.road.network.lane.object.sensor.Detector.PlatoonMeasurement,List<Integer>>cumulative - C; accumulated valuegtu - LaneBasedGTU; gtuloopDetector - LoopDetector; loop detectorpublic org.opentrafficsim.road.network.lane.object.sensor.Detector.PlatoonMeasurement accumulateExit(org.opentrafficsim.road.network.lane.object.sensor.Detector.PlatoonMeasurement cumulative, LaneBasedGTU gtu, Detector loopDetector)
accumulateExit in interface Detector.DetectorMeasurement<org.opentrafficsim.road.network.lane.object.sensor.Detector.PlatoonMeasurement,List<Integer>>cumulative - C; accumulated valuegtu - LaneBasedGTU; gtuloopDetector - LoopDetector; loop detectorpublic boolean isPeriodic()
isPeriodic in interface Detector.DetectorMeasurement<org.opentrafficsim.road.network.lane.object.sensor.Detector.PlatoonMeasurement,List<Integer>>public List<Integer> aggregate(org.opentrafficsim.road.network.lane.object.sensor.Detector.PlatoonMeasurement cumulative, int count, Duration aggregation)
aggregate in interface Detector.DetectorMeasurement<org.opentrafficsim.road.network.lane.object.sensor.Detector.PlatoonMeasurement,List<Integer>>cumulative - C; accumulated valuecount - int; GTU countaggregation - Duration; aggregation periodpublic String getName()
getName in interface Detector.DetectorMeasurement<org.opentrafficsim.road.network.lane.object.sensor.Detector.PlatoonMeasurement,List<Integer>>public String stringValue(List<Integer> aggregate, String format)
stringValue in interface Detector.DetectorMeasurement<org.opentrafficsim.road.network.lane.object.sensor.Detector.PlatoonMeasurement,List<Integer>>aggregate - A; aggregate resultformat - String; format stringCopyright © 2014–2018 Delft University of Technology. All rights reserved.