Package org.opentrafficsim.road.gtu.lane.perception
package org.opentrafficsim.road.gtu.lane.perception
Implementation of lane-based perception for the GTU.
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.
- Author:
- Alexander Verbraeck, Peter Knoppers
-
ClassDescriptionAbstract iterable that figures out how to find the next nearest object, including splits.This class uses a single primary iterator which a subclass defines, and makes sure that all elements are only looked up and created once.The perception module of a GTU based on lanes.Iterable to find downstream GTU's.
The behavior of this search is slightly altered usingboolean ignoreIfUpstream
.FilteredIterable<T extends Headway>Returns only those elements that comply with the predicate.Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.Iterable that searches downstream or upstream for a certain type of lane based object.Interface for perception in a lane-based model.Iterable class to search over multiple lanes.Iterable that additionally provides support for PerceptionCollectors.Wrapper of intermediate result with info for the iterator algorithm.Accumulates an object one at a time in to an accumulating intermediate result.Combination of an accumulator and a finalizer.Translates the last intermediate result of an accumulator in to the collection output.Wrapper for object and its distance.Wraps aPerceptionCollectable
and only iterates over all objects that are accepted by a predicate.Interface for perception initialization.PerceptionIterable<H extends Headway>Iterable set of elements, sorted close to far.PerceptionIterableSet<H extends Headway>Simple implementation ofPerceptionIterable
which wraps a set.Defines a lane relative to the current lane.Iterable to find upstream GTU's.