Class RouteGenerator.DefaultRouteGenerator
java.lang.Object
org.opentrafficsim.road.gtu.strategical.RouteGenerator.DefaultRouteGenerator
- All Implemented Interfaces:
RouteGenerator
- Enclosing interface:
- RouteGenerator
Shortest route route generator.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opentrafficsim.road.gtu.strategical.RouteGenerator
RouteGenerator.DefaultRouteGenerator
-
Field Summary
Fields inherited from interface org.opentrafficsim.road.gtu.strategical.RouteGenerator
DEFAULT_SUPPLIERS, NULL
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRouteGenerator
(nl.tudelft.simulation.jstats.streams.StreamInterface stream, LinkWeight linkWeight) Constructor. -
Method Summary
-
Constructor Details
-
DefaultRouteGenerator
public DefaultRouteGenerator(nl.tudelft.simulation.jstats.streams.StreamInterface stream, LinkWeight linkWeight) Constructor.- Parameters:
stream
- stream of random numberslinkWeight
- link weight.
-
-
Method Details
-
getRoute
Description copied from interface:RouteGenerator
Returns a route.- Specified by:
getRoute
in interfaceRouteGenerator
- Parameters:
origin
- origindestination
- destinationgtuType
- gtu type- Returns:
- route
-
toString
-