Class AbstractPerceptionIterable.Entry
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.AbstractPerceptionIterable.Entry
- Enclosing class:
- AbstractPerceptionIterable<H extends Headway,
U, C>
Class of objects for subclasses to return. This can contain either a single object, or a set if there are multiple
objects at a single location.
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
-
Method Summary
-
Constructor Details
-
Entry
Constructor.- Parameters:
object
- U; objectcounter
- C; counter, may benull
position
- Length; position
-
Entry
Constructor.- Parameters:
set
- Set<U>; setcounter
- C; counter, may benull
position
- Length; position
-
-
Method Details
-
isSet
final boolean isSet()Returns whether this entry contains a set.- Returns:
- whether this entry contains a set
-
getObject
Returns the underlying object. Use!isSet()
to check whether there is an object.- Returns:
- U; underlying set
-
getSet
Returns the underlying set. UseisSet()
to check whether there is a set.- Returns:
- Set<U>; underlying set
-