Interface RouteSystem

  • All Known Implementing Classes:
    DefaultRouteSystem

    public interface RouteSystem
    A route system supplies information on the number of lane changes and distance within which this has to be performed.

    Copyright (c) 2013-2022 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 25 okt. 2019
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Method Detail

      • getLaneChangeInfo

        SortedSet<LaneChangeInfo> getLaneChangeInfo​(DirectedLanePosition position,
                                                    Length front,
                                                    Route route,
                                                    GTUType gtuType,
                                                    Length distance)
        Returns lane change information from a position over a given length, according to a route and GTU type. The distance concerns the distance within which the lane change has to be performed. Due to lane markings, the actual split may be beyond the distance.
        Parameters:
        position - DirectedLanePosition; position
        front - Length; distance required for the front (relative to reference position)
        route - Route; route, may be null
        gtuType - GTUType; GTU type
        distance - Length; distance over which required lane changes are desired to be known
        Returns:
        SortedSet<LaneChangeInfo>; lane change information