public class RouteGeneratorProbability extends Object implements RouteGenerator
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.
| Constructor and Description |
|---|
RouteGeneratorProbability(OTSNetwork network,
TimeVector timeVector,
OTSNode from,
SimulatorInterface.TimeDoubleUnit simulator) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDemand(OTSNode to,
double[] demand)
Add demand for route to 'to' node.
|
Route |
draw() |
public RouteGeneratorProbability(OTSNetwork network, TimeVector timeVector, OTSNode from, SimulatorInterface.TimeDoubleUnit simulator)
network - the networktimeVector - a time vectorfrom - start nodesimulator - the simulatorpublic void addDemand(OTSNode to, double[] demand)
to - destination nodedemand - demandpublic Route draw() throws ProbabilityException
draw in interface Generator<Route>draw in interface RouteGeneratorProbabilityExceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.