Class PerceptionCollectable.UnderlyingDistance<U>
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.PerceptionCollectable.UnderlyingDistance<U>
- Type Parameters:
U
- underlying object type
- Enclosing interface:
- PerceptionCollectable<H extends Headway,
U>
Wrapper for object and its distance.
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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionUnderlyingDistance
(U object, org.djunits.value.vdouble.scalar.Length distance) -
Method Summary
Modifier and TypeMethodDescriptionorg.djunits.value.vdouble.scalar.Length
-
Field Details
-
object
Object. -
distance
final org.djunits.value.vdouble.scalar.Length distanceDistance.
-
-
Constructor Details
-
UnderlyingDistance
- Parameters:
object
- U; objectdistance
- Length; distance
-
-
Method Details
-
getObject
- Returns:
- U; object.
-
getDistance
public org.djunits.value.vdouble.scalar.Length getDistance()- Returns:
- Length; distance.
-