public class LaneBasedTemplateGTUTypeDistribution extends Object implements LaneBasedGTUCharacteristicsGenerator, Serializable
Copyright (c) 2013-2016 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(LaneBasedGTU gtu)
Generate a LaneBasedGTUCharacteristics object.
|
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface |
getSimulator()
Return the simulator.
|
String |
toString() |
public LaneBasedTemplateGTUTypeDistribution(org.opentrafficsim.core.distributions.Distribution<LaneBasedTemplateGTUType> distributionOfLanebasedTemplateGTUType)
distributionOfLanebasedTemplateGTUType - the distribution of LaneBasedTemplateGTUTypespublic final LaneBasedGTUCharacteristics draw(LaneBasedGTU gtu) throws org.opentrafficsim.core.distributions.ProbabilityException, org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException, org.opentrafficsim.core.gtu.GTUException
draw in interface LaneBasedGTUCharacteristicsGeneratorgtu - GTUorg.opentrafficsim.core.distributions.ProbabilityException - when the generator is improperly configuredorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - in case of a parameter problem.org.opentrafficsim.core.gtu.GTUException - if strategical planner cannot be createdpublic final 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.