Interface PerceptionIterable<H extends Headway>
- Type Parameters:
H
- headway type
- All Superinterfaces:
Iterable<H>
- All Known Subinterfaces:
PerceptionCollectable<H,
U>
- All Known Implementing Classes:
AbstractPerceptionIterable
,AbstractPerceptionReiterable
,DownstreamNeighborsIterable
,LaneBasedObjectIterable
,MultiLanePerceptionIterable
,PerceptionCollectableFiltered
,PerceptionIterableSet
,UpstreamNeighborsIterable
Iterable set of elements, sorted close to far.
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
-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
first
H first()Returns the first element.- Returns:
- H; first element
-
isEmpty
boolean isEmpty()Returns whether this iterable is empty.- Returns:
- whether this iterable is empty
-