Class NeighborsUtil.DistanceGTU
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.categories.neighbors.NeighborsUtil.DistanceGTU
- All Implemented Interfaces:
Comparable<NeighborsUtil.DistanceGTU>
- Enclosing class:
- NeighborsUtil
public static class NeighborsUtil.DistanceGTU extends Object implements Comparable<NeighborsUtil.DistanceGTU>
GTU at a distance, as preliminary info towards perceiving it. For instance, as a set from a search algorithm.
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 22 apr. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Method Summary
Modifier and Type Method Description intcompareTo(NeighborsUtil.DistanceGTU o)LengthgetDistance()Returns the distance.LaneBasedGTUgetGTU()Returns the GTU.
-
Method Details
-
getGTU
Returns the GTU.- Returns:
- LaneBasedGTU; GTU
-
getDistance
Returns the distance.- Returns:
- Length; distance
-
compareTo
- Specified by:
compareToin interfaceComparable<NeighborsUtil.DistanceGTU>
-