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
ConstructorDescriptionDefaultRouteGenerator
(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
- StreamInterface; stream of random numberslinkWeight
- LinkWeight; link weight.
-
-
Method Details
-
getRoute
Returns a route.- Specified by:
getRoute
in interfaceRouteGenerator
- Parameters:
origin
- Node; origindestination
- Node; destinationgtuType
- GtuType; gtu type- Returns:
- Route; route
-
toString
-