Class RouteGeneratorOD.DefaultRouteGenerator
- java.lang.Object
-
- org.opentrafficsim.road.gtu.strategical.route.RouteGeneratorOD.DefaultRouteGenerator
-
- All Implemented Interfaces:
RouteGeneratorOD
- Enclosing interface:
- RouteGeneratorOD
public static class RouteGeneratorOD.DefaultRouteGenerator extends Object implements RouteGeneratorOD
Shortest route route generator.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opentrafficsim.road.gtu.strategical.route.RouteGeneratorOD
RouteGeneratorOD.DefaultRouteGenerator
-
-
Field Summary
-
Fields inherited from interface org.opentrafficsim.road.gtu.strategical.route.RouteGeneratorOD
DEFAULT_MAP, NULL
-
-
Constructor Summary
Constructors Constructor Description DefaultRouteGenerator(StreamInterface stream)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Route
getRoute(Node origin, Node destination, GTUType gtuType)
Returns a route.String
toString()
-
-
-
Constructor Detail
-
DefaultRouteGenerator
public DefaultRouteGenerator(StreamInterface stream)
Constructor.- Parameters:
stream
- StreamInterface; stream of random numbers
-
-
Method Detail
-
getRoute
public Route getRoute(Node origin, Node destination, GTUType gtuType)
Description copied from interface:RouteGeneratorOD
Returns a route.- Specified by:
getRoute
in interfaceRouteGeneratorOD
- Parameters:
origin
- Node; origindestination
- Node; destinationgtuType
- GTUType; gtu type- Returns:
- Route; route
-
-