Interface PerceptionCollectable.PerceptionAccumulator<U,I>

Type Parameters:
U - underlying object type
I - intermediate result type
Enclosing interface:
PerceptionCollectable<H extends Headway,U>

public static interface PerceptionCollectable.PerceptionAccumulator<U,I>
Accumulates an object one at a time in to an accumulating intermediate result.
  • Method Details

    • accumulate

      PerceptionCollectable.Intermediate<I> accumulate(PerceptionCollectable.Intermediate<I> intermediate, U object, org.djunits.value.vdouble.scalar.Length distance)
      Accumulate the next object to intermediate result.
      Parameters:
      intermediate - intermediate result before accumulation of object
      object - next object to include
      distance - distance to the considered object
      Returns:
      intermediate result after accumulation of object