Class AbstractPerceptionReiterable.PrimaryIteratorEntry
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.AbstractPerceptionReiterable.PrimaryIteratorEntry
- All Implemented Interfaces:
Comparable<AbstractPerceptionReiterable<P,
H, U>.PrimaryIteratorEntry>
- Enclosing class:
- AbstractPerceptionReiterable<P extends LaneBasedObject,
H extends Headway, U>
protected class AbstractPerceptionReiterable.PrimaryIteratorEntry
extends Object
implements Comparable<AbstractPerceptionReiterable<P,H,U>.PrimaryIteratorEntry>
Class for
primaryIterator()
to return, implemented in subclasses.
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 Summary
ConstructorsConstructorDescriptionPrimaryIteratorEntry
(U object, org.djunits.value.vdouble.scalar.Length distance) Constructor. -
Method Summary
-
Constructor Details
-
PrimaryIteratorEntry
Constructor.- Parameters:
object
- objectdistance
- distance
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<AbstractPerceptionReiterable<P extends LaneBasedObject,
H extends Headway, U>.PrimaryIteratorEntry>
-
getObject
Returns the object.- Returns:
- object
-