primaryIterator
Returns the primary iterator. This method is called once by AbstractPerceptionReiterable.
- Returns:
- primary iterator
O - perceiving object type (an O is perceiving a U as a P)P - perceived object type (an O is perceiving a U as a P)U - underlying object type (an O is perceiving a U as a P)Iterable<P>, PerceptionCollectable<P,U> , PerceptionIterable<P>MultiLanePerceptionIterable, PerceptionReiterableiterator() return an iterator which
iterates over the linked list. If an iterator runs to the end of the linked list, the primary iterator is requested to add an
element if it has one.
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.
class iterator() method.PerceptionCollectable.Intermediate<I>, PerceptionCollectable.PerceptionAccumulator<U,I>, PerceptionCollectable.PerceptionCollector<C,U,I>, PerceptionCollectable.UnderlyingDistance<U> protected AbstractPerceptionReiterable(O perceivingObject) final <C,
I> C collect(Supplier<I> identity,
PerceptionCollectable.PerceptionAccumulator<? super U,I> accumulator,
Function<I,C> finalizer) final Pfirst()final booleanisEmpty()iterator()protected abstract Pprotected abstract Iterator<PerceptionCollectable.UnderlyingDistance<U>>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorcollectperceivingObject - perceiving object.object - underlying objectdistance - distance to the objectGtuException - on exceptionParameterException - on invalid parameter value or missing parameterPerceptionIterablefirst in interface PerceptionIterable<O extends LaneBasedObject>PerceptionIterableisEmpty in interface PerceptionIterable<O extends LaneBasedObject>iterator in interface Iterable<O extends LaneBasedObject>PerceptionCollectablecollect in interface PerceptionCollectable<O extends LaneBasedObject,P extends PerceivedObject> C - collection result typeI - intermediate typeidentity - the initial intermediate result valueaccumulator - accumulatorfinalizer - finalizerPerceptionCollectableunderlying in interface PerceptionCollectable<O extends LaneBasedObject,P extends PerceivedObject> PerceptionCollectableunderlyingWithDistance in interface PerceptionCollectable<O extends LaneBasedObject,P extends PerceivedObject>