Class ProbabilisticRouteGenerator
java.lang.Object
org.opentrafficsim.core.network.route.ProbabilisticRouteGenerator
- All Implemented Interfaces:
Serializable,Generator<Route>
public class ProbabilisticRouteGenerator extends Object implements Generator<Route>, Serializable
Generate one of a set of routes, based on a discrete probability density function.
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2020-01-23 11:14:19 +0100 (Thu, 23 Jan 2020) $, @version $Revision: 6010 $, by $Author: averbraeck $,
initial version 20 Mar 2015
- Author:
- Alexander Verbraeck, Peter Knoppers
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ProbabilisticRouteGenerator(List<Distribution.FrequencyAndObject<Route>> generators, StreamInterface stream)Create a new Probabilistic Route Generator. -
Method Summary
-
Constructor Details
-
ProbabilisticRouteGenerator
public ProbabilisticRouteGenerator(List<Distribution.FrequencyAndObject<Route>> generators, StreamInterface stream) throws ProbabilityExceptionCreate a new Probabilistic Route Generator.- Parameters:
generators- List<Distribution.FrequencyAndObject<Route>>; list of routes and frequenciesstream- StreamInterface; the entropy source- Throws:
ProbabilityException- when the probabilities are invalid
-
-
Method Details