public class LaneBasedTemplateGTUTypeDistribution extends Object implements LaneBasedGTUCharacteristicsGenerator
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.
| Constructor and Description |
|---|
LaneBasedTemplateGTUTypeDistribution(org.opentrafficsim.core.distributions.Distribution<LaneBasedTemplateGTUType> distributionOfLanebasedTemplateGTUType)
Construct a new LaneBasedTemplateGTUTypeDistribution.
|
| Modifier and Type | Method and Description |
|---|---|
LaneBasedGTUCharacteristics |
draw()
Generate a LaneBasedGTUCharacteristics object.
|
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface |
getSimulator()
Return the simulator.
|
public LaneBasedTemplateGTUTypeDistribution(org.opentrafficsim.core.distributions.Distribution<LaneBasedTemplateGTUType> distributionOfLanebasedTemplateGTUType)
distributionOfLanebasedTemplateGTUType - the distribution of LaneBasedTemplateGTUTypespublic LaneBasedGTUCharacteristics draw() throws org.opentrafficsim.core.distributions.ProbabilityException
draw in interface LaneBasedGTUCharacteristicsGeneratororg.opentrafficsim.core.distributions.ProbabilityException - when the generator is improperly configuredpublic org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface getSimulator()
throws org.opentrafficsim.core.distributions.ProbabilityException
getSimulator in interface LaneBasedGTUCharacteristicsGeneratororg.opentrafficsim.core.distributions.ProbabilityException - when the generator cannot retrieve the simulatorCopyright © 2014–2016 Delft University of Technology. All rights reserved.