public static class TaskHeadwayBased.TaskHeadwayCollector extends Object implements PerceptionCollectable.PerceptionCollector<Duration,LaneBasedGTU,Duration>
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 |
---|
TaskHeadwayCollector(Speed speed)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PerceptionCollectable.PerceptionAccumulator<LaneBasedGTU,Duration> |
getAccumulator()
Returns the accumulator.
|
PerceptionCollectable.PerceptionFinalizer<Duration,Duration> |
getFinalizer()
Returns the finalizer.
|
Supplier<Duration> |
getIdentity()
Returns the identity value, the initial intermediate value.
|
public TaskHeadwayCollector(Speed speed)
speed
- Speed; speedpublic Supplier<Duration> getIdentity()
getIdentity
in interface PerceptionCollectable.PerceptionCollector<Duration,LaneBasedGTU,Duration>
public PerceptionCollectable.PerceptionAccumulator<LaneBasedGTU,Duration> getAccumulator()
getAccumulator
in interface PerceptionCollectable.PerceptionCollector<Duration,LaneBasedGTU,Duration>
public PerceptionCollectable.PerceptionFinalizer<Duration,Duration> getFinalizer()
getFinalizer
in interface PerceptionCollectable.PerceptionCollector<Duration,LaneBasedGTU,Duration>
Copyright © 2014–2018 Delft University of Technology. All rights reserved.