public class RouteGeneratorProbability extends Object implements org.opentrafficsim.core.network.route.RouteGenerator
Copyright (c) 2013-2017 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(org.opentrafficsim.core.network.OTSNetwork network,
org.djunits.value.vdouble.vector.TimeVector timeVector,
org.opentrafficsim.core.network.OTSNode from,
org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDemand(org.opentrafficsim.core.network.OTSNode to,
double[] demand)
Add demand for route to 'to' node.
|
org.opentrafficsim.core.network.route.Route |
draw() |
public RouteGeneratorProbability(org.opentrafficsim.core.network.OTSNetwork network,
org.djunits.value.vdouble.vector.TimeVector timeVector,
org.opentrafficsim.core.network.OTSNode from,
org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator)
network - the networktimeVector - a time vectorfrom - start nodesimulator - the simulatorpublic void addDemand(org.opentrafficsim.core.network.OTSNode to,
double[] demand)
to - destination nodedemand - demandpublic org.opentrafficsim.core.network.route.Route draw()
throws org.opentrafficsim.core.distributions.ProbabilityException
draw in interface org.opentrafficsim.core.distributions.Generator<org.opentrafficsim.core.network.route.Route>draw in interface org.opentrafficsim.core.network.route.RouteGeneratororg.opentrafficsim.core.distributions.ProbabilityExceptionCopyright © 2014–2017 Delft University of Technology. All rights reserved.