public class ProbabilisticRouteGenerator extends Object implements RouteGenerator
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-08-30 01:31:13 +0200 (Sun, 30 Aug 2015) $, @version $Revision: 1342 $, by $Author: averbraeck $,
initial version 20 Mar 2015
| Modifier and Type | Class and Description |
|---|---|
static class |
ProbabilisticRouteGenerator.RouteProbability
Combination of route and probability or frequency.
|
| Constructor and Description |
|---|
ProbabilisticRouteGenerator(List<ProbabilisticRouteGenerator.RouteProbability> routeProbabilities,
StreamInterface stream)
Construct a new ProbabilistiRouteGenerator using the given random stream.
|
| Modifier and Type | Method and Description |
|---|---|
CompleteRouteNavigator |
generateRouteNavigator()
Generate a RouteNavigator.
|
public ProbabilisticRouteGenerator(List<ProbabilisticRouteGenerator.RouteProbability> routeProbabilities, StreamInterface stream) throws NetworkException
routeProbabilities - 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 useNetworkException - when the probabilities or frequencies are invalid (negative, or all zero)public final CompleteRouteNavigator generateRouteNavigator()
generateRouteNavigator in interface RouteGeneratorCopyright © 2014–2015 Delft University of Technology. All rights reserved.