public class ProbabilisticRouteGenerator extends Object implements RouteGenerator, Serializable
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2018-09-19 13:55:45 +0200 (Wed, 19 Sep 2018) $, @version $Revision: 4006 $, by $Author: averbraeck $,
initial version 20 Mar 2015
| Constructor and Description |
|---|
ProbabilisticRouteGenerator(List<Distribution.FrequencyAndObject<Route>> generators,
nl.tudelft.simulation.jstats.streams.StreamInterface stream)
Create a new Probabilistic Route Generator.
|
public ProbabilisticRouteGenerator(List<Distribution.FrequencyAndObject<Route>> generators, nl.tudelft.simulation.jstats.streams.StreamInterface stream) throws ProbabilityException
generators - List<Distribution.FrequencyAndObject<Route>>; list of routes and frequenciesstream - StreamInterface; the entropy sourceProbabilityException - when the probabilities are invalidpublic final Route draw() throws ProbabilityException
draw in interface Generator<Route>draw in interface RouteGeneratorProbabilityException - when the an error was detected in the probabilities of the routes to choose fromCopyright © 2014–2018 Delft University of Technology. All rights reserved.