public class ProbabilisticLaneBasedRouteGenerator extends Object implements LaneBasedRouteGenerator
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-07-26 01:01:13 +0200 (Sun, 26 Jul 2015) $, @version $Revision: 1155 $, by $Author: averbraeck $,
initial version 20 Mar 2015
| Modifier and Type | Class and Description |
|---|---|
static class |
ProbabilisticLaneBasedRouteGenerator.LaneBasedRouteProbability
Combination of route and probability or frequency.
|
| Constructor and Description |
|---|
ProbabilisticLaneBasedRouteGenerator(List<ProbabilisticLaneBasedRouteGenerator.LaneBasedRouteProbability> laneBasedRouteProbabilities,
StreamInterface stream)
Construct a new ProbabilistiRouteGenerator using the given random stream.
|
| Modifier and Type | Method and Description |
|---|---|
CompleteLaneBasedRouteNavigator |
generateRouteNavigator()
Generate a RouteNavigator.
|
public ProbabilisticLaneBasedRouteGenerator(List<ProbabilisticLaneBasedRouteGenerator.LaneBasedRouteProbability> laneBasedRouteProbabilities, StreamInterface stream) throws org.opentrafficsim.core.network.NetworkException
laneBasedRouteProbabilities - the Routes with the probabilities for each one. Instead of probabilities, (observed)
frequencies may be used; i.e. the provided values are internally scaled to add up to 1.0.stream - the random stream to useorg.opentrafficsim.core.network.NetworkException - when the probabilities or frequencies are invalid (negative, or all zero)public final CompleteLaneBasedRouteNavigator generateRouteNavigator()
generateRouteNavigator in interface org.opentrafficsim.core.network.route.RouteGeneratorgenerateRouteNavigator in interface LaneBasedRouteGeneratorCopyright © 2014–2015 Delft University of Technology. All rights reserved.