Interface RouteGeneratorOD

  • All Known Implementing Classes:
    RouteGeneratorOD.DefaultRouteGenerator

    public interface RouteGeneratorOD
    Generates a route by determining one. This class is different from RouteGenerator in that it has the origin, destination and GTU type as input.

    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 24 mrt. 2018
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Method Detail

      • getDefaultRouteSupplier

        static RouteGeneratorOD getDefaultRouteSupplier​(StreamInterface stream)
        Returns a default route generator for shortest routes based on the given stream.
        Parameters:
        stream - StreamInterface; random number stream
        Returns:
        RouteSupplier; default route generator for shortest routes based on the given stream
      • getRoute

        Route getRoute​(Node origin,
                       Node destination,
                       GTUType gtuType)
        Returns a route.
        Parameters:
        origin - Node; origin
        destination - Node; destination
        gtuType - GTUType; gtu type
        Returns:
        Route; route