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-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version Sep 15, 2016
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(LaneStructure.Entry<T> arg)
boolean
equals(Object obj)
Length
getDistance()
T
getLaneBasedObject()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
getDistance
public final Length getDistance()
- Returns:
- distance.
-
getLaneBasedObject
public final T getLaneBasedObject()
- Returns:
- laneBasedObject.
-
compareTo
public final int compareTo(LaneStructure.Entry<T> arg)
- Specified by:
compareTo
in interfaceComparable<T extends LaneBasedObject>
-
-