Class RouteGenerator.DefaultRouteGenerator

java.lang.Object
org.opentrafficsim.road.gtu.strategical.RouteGenerator.DefaultRouteGenerator
All Implemented Interfaces:
RouteGenerator
Enclosing interface:
RouteGenerator

public static class RouteGenerator.DefaultRouteGenerator extends Object implements RouteGenerator
Shortest route route generator.
  • Constructor Details

    • DefaultRouteGenerator

      public DefaultRouteGenerator(nl.tudelft.simulation.jstats.streams.StreamInterface stream, LinkWeight linkWeight)
      Constructor.
      Parameters:
      stream - StreamInterface; stream of random numbers
      linkWeight - LinkWeight; link weight.
  • Method Details

    • getRoute

      public Route getRoute(Node origin, Node destination, GtuType gtuType)
      Returns a route.
      Specified by:
      getRoute in interface RouteGenerator
      Parameters:
      origin - Node; origin
      destination - Node; destination
      gtuType - GtuType; gtu type
      Returns:
      Route; route
    • toString

      public String toString()
      Overrides:
      toString in class Object