Class LaneStructure.Entry<T extends LaneBasedObject>
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.LaneStructure.Entry<T>
- Type Parameters:
T
- class of lane based object contained
- All Implemented Interfaces:
Comparable<LaneStructure.Entry<T>>
- Enclosing interface:
- LaneStructure
public static class LaneStructure.Entry<T extends LaneBasedObject>
extends Object
implements Comparable<LaneStructure.Entry<T>>
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. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Details
-
Entry
- Parameters:
distance
- Length; distance to lane based objectlaneBasedObject
- T; lane based object
-
-
Method Details
-
getDistance
public final org.djunits.value.vdouble.scalar.Length getDistance()- Returns:
- distance.
-
getLaneBasedObject
- Returns:
- laneBasedObject.
-
hashCode
public final int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T extends LaneBasedObject>
-
toString
-