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>

public static class PerceptionCollectable.UnderlyingDistance<U> extends Object
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 Details

    • object

      final U object
      Object.
    • distance

      final org.djunits.value.vdouble.scalar.Length distance
      Distance.
  • Constructor Details

    • UnderlyingDistance

      public UnderlyingDistance(U object, org.djunits.value.vdouble.scalar.Length distance)
      Parameters:
      object - U; object
      distance - Length; distance
  • Method Details

    • getObject

      public U getObject()
      Returns:
      U; object.
    • getDistance

      public org.djunits.value.vdouble.scalar.Length getDistance()
      Returns:
      Length; distance.