Interface PerceptionCollectable.PerceptionAccumulator<U,I>
- Type Parameters:
U- underlying object typeI- 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 Summary
Modifier and TypeMethodDescriptionaccumulate(PerceptionCollectable.Intermediate<I> intermediate, U object, org.djunits.value.vdouble.scalar.Length distance) Accumulate the next object to 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 objectobject- next object to includedistance- distance to the considered object- Returns:
- intermediate result after accumulation of object
-