Class SimpleLaneRecord
java.lang.Object
org.opentrafficsim.road.gtu.perception.structure.SimpleLaneRecord
- All Implemented Interfaces:
LaneRecordInterface<SimpleLaneRecord>
A light-weight wrapper for NavigatingIterable. This is suitable for situations where parts of the network not in the
LaneStructure need to be perceived, such as conflicting lanes at intersection conflicts. Searches can only be simple upstream
or downstream searches, without lateral movement and without regard of a route. This class should not be used whenever the
LaneStructure can be used.
Copyright (c) 2013-2026 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, Wouter Schakel
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleLaneRecord(Lane lane, org.djunits.value.vdouble.scalar.Length startDistance, GtuType gtuType) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opentrafficsim.road.gtu.perception.structure.LaneRecordInterface
getDistanceToPosition, getLength, getMergeDistance, isDownstreamBranch, lateral
-
Constructor Details
-
Method Details
-
getNext
Description copied from interface:LaneRecordInterfaceReturns a list of next lanes.- Specified by:
getNextin interfaceLaneRecordInterface<SimpleLaneRecord>- Returns:
- list of next lanes
-
getPrev
Description copied from interface:LaneRecordInterfaceReturns a list of previous lanes.- Specified by:
getPrevin interfaceLaneRecordInterface<SimpleLaneRecord>- Returns:
- list of previous lanes
-
getStartDistance
public org.djunits.value.vdouble.scalar.Length getStartDistance()Description copied from interface:LaneRecordInterfaceReturns the distance from a reference to the start of this lane, negative for upstream distance.- Specified by:
getStartDistancein interfaceLaneRecordInterface<SimpleLaneRecord>- Returns:
- the distance from a reference to the start of this lane, negative for upstream distance
-
getLane
Description copied from interface:LaneRecordInterfaceReturns the lane.- Specified by:
getLanein interfaceLaneRecordInterface<SimpleLaneRecord>- Returns:
- lane
-