primaryIterator
Returns the primary iterator. This method is called once by AbstractPerceptionReiterable.
- Specified by:
primaryIterator
in classAbstractPerceptionReiterable<H extends Headway,
U> - Returns:
- Iterator; primary iterator
H
- headway typeU
- underlying headway typeIterable<H>
, PerceptionCollectable<H,U>
, PerceptionIterable<H>
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.
AbstractPerceptionReiterable.PerceptionIterator, AbstractPerceptionReiterable.PrimaryIteratorEntry
PerceptionCollectable.Intermediate<I>, PerceptionCollectable.PerceptionAccumulator<U,I>, PerceptionCollectable.PerceptionCollector<C,U,I>, PerceptionCollectable.PerceptionFinalizer<C,I>, PerceptionCollectable.UnderlyingDistance<U>
void
addIterable(RelativeLane lane,
AbstractPerceptionReiterable<H,U> iterable)
perceive(LaneBasedGtu perceivingGtu,
U object,
org.djunits.value.vdouble.scalar.Length distance)
addNext, assureNext, collect, first, getGtu, getPrimaryIterator, isEmpty, iterator, underlying, underlyingWithDistance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
collect
perceivingGtu
- LaneBasedGtu; perceiving GTUlane
- RelativeLane; laneiterable
- AbstractPerceptionReiterable<H, U>; iterableprimaryIterator
in class AbstractPerceptionReiterable<H extends Headway,U>
perceive
in class AbstractPerceptionReiterable<H extends Headway,U>
perceivingGtu
- LaneBasedGtu; perceiving GTUobject
- U; underlying objectdistance
- Length; distance to the objectGtuException
- on exceptionorg.opentrafficsim.base.parameters.ParameterException
- on invalid parameter value or missing parameter