Class 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-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
    BSD-style license. See OpenTrafficSim License.

    Version:
    $Revision$, $LastChangedDate$, by $Author$, initial version Aug 6, 2019
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Constructor Detail

      • UnderlyingDistance

        public UnderlyingDistance​(U object,
                                  Length distance)
        Parameters:
        object - U; object
        distance - Length; distance
    • Method Detail

      • getObject

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

        public Length getDistance()
        Returns:
        Length; distance.