Class AbstractPerceptionReiterable.PrimaryIteratorEntry
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.AbstractPerceptionReiterable.PrimaryIteratorEntry
- All Implemented Interfaces:
java.lang.Comparable<AbstractPerceptionReiterable.PrimaryIteratorEntry>
- Enclosing class:
- AbstractPerceptionReiterable<H extends Headway,U>
protected class AbstractPerceptionReiterable.PrimaryIteratorEntry extends java.lang.Object implements java.lang.Comparable<AbstractPerceptionReiterable.PrimaryIteratorEntry>
Class for
primaryIterator()
to return, implemented in subclasses.
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 28 feb. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors Constructor Description PrimaryIteratorEntry(U object, Length distance)
Constructor. -
Method Summary
Modifier and Type Method Description int
compareTo(AbstractPerceptionReiterable.PrimaryIteratorEntry o)
protected U
getObject()
Returns the object.
-
Constructor Details
-
PrimaryIteratorEntry
Constructor.- Parameters:
object
- U; objectdistance
- Length; distance
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfacejava.lang.Comparable<AbstractPerceptionReiterable.PrimaryIteratorEntry>
-
getObject
Returns the object.- Returns:
- U; object
-