Interface PerceptionCollectable.PerceptionCollector<C,U,I>
-
- Type Parameters:
C
- collection result typeU
- underlying object typeI
- intermediate result type
- All Known Implementing Classes:
AnticipationDensity
,AnticipationSpeed
,TaskHeadwayCollector
- Enclosing interface:
- PerceptionCollectable<H extends Headway,U>
public static interface PerceptionCollectable.PerceptionCollector<C,U,I>
Combination of an accumulator and a finalizer.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 28 feb. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PerceptionCollectable.PerceptionAccumulator<U,I>
getAccumulator()
Returns the accumulator.PerceptionCollectable.PerceptionFinalizer<C,I>
getFinalizer()
Returns the finalizer.Supplier<I>
getIdentity()
Returns the identity value, the initial intermediate value.
-
-
-
Method Detail
-
getIdentity
Supplier<I> getIdentity()
Returns the identity value, the initial intermediate value.- Returns:
- I; identity value, the initial intermediate value
-
getAccumulator
PerceptionCollectable.PerceptionAccumulator<U,I> getAccumulator()
Returns the accumulator.- Returns:
- PerceptionAccumulator; accumulator
-
getFinalizer
PerceptionCollectable.PerceptionFinalizer<C,I> getFinalizer()
Returns the finalizer.- Returns:
- PerceptionFinalizer; finalizer
-
-