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-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Method Summary
Modifier and TypeMethodDescriptionReturns the accumulator.Returns the finalizer.Returns the identity value, the initial intermediate value.
-
Method Details
-
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
-