Interface PerceptionCollectable.PerceptionCollector<C,U,I>

Type Parameters:
C - collection result type
U - underlying object type
I - 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.
  • Method Details

    • getIdentity

      Supplier<I> getIdentity()
      Returns the identity value, the initial intermediate value.
      Returns:
      identity value, the initial intermediate value
    • getAccumulator

      Returns the accumulator.
      Returns:
      accumulator
    • getFinalizer

      Function<I,C> getFinalizer()
      Returns the finalizer.
      Returns:
      finalizer