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
-
ClassDescriptionThe perception module of a GTU based on lanes.Abstract 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.Standard perception completely based on connected perception categories.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.Contains information by which drivers know when they need to leave a lane in order to be able to stay on the infrastructure and follow their route.Iterable that searches downstream or upstream for a certain type of lane based object.Interface for perception in a lane-based model.A light-weight wrapper for LaneRecord search tools (PerceptionIterator).LaneRecordInterface<R extends LaneRecordInterface<R>>Interface representing a lane for search algorithms, in particular PerceptionIterable.Interface for lane structures.LaneStructure.Entry<T extends LaneBasedObject>Wrapper to hold lane-based object and it's distance.Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.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.This data structure can clearly indicate the lane structure ahead of us, e.g.A LaneStructureRecord contains information about the lanes that can be accessed from this lane by a GtuType.Link between records that defines the dependence of start position and hence how this is updated as the GTU moves.Iterable to find upstream GTU's.