Class LaneBasedGtuTemplateDistribution
java.lang.Object
org.opentrafficsim.road.gtu.generator.characteristics.LaneBasedGtuTemplateDistribution
- All Implemented Interfaces:
Serializable
,LaneBasedGtuCharacteristicsGenerator
public class LaneBasedGtuTemplateDistribution
extends Object
implements LaneBasedGtuCharacteristicsGenerator, Serializable
Distribution of LaneBasedTemplateGTUType.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers
- See Also:
-
Constructor Summary
ConstructorDescriptionLaneBasedGtuTemplateDistribution
(Distribution<LaneBasedGtuTemplate> distributionOfLanebasedTemplateGTUType) Construct a new LaneBasedTemplateGTUTypeDistribution. -
Method Summary
-
Constructor Details
-
LaneBasedGtuTemplateDistribution
public LaneBasedGtuTemplateDistribution(Distribution<LaneBasedGtuTemplate> distributionOfLanebasedTemplateGTUType) Construct a new LaneBasedTemplateGTUTypeDistribution.- Parameters:
distributionOfLanebasedTemplateGTUType
- Distribution<LaneBasedTemplateGTUType>; the distribution of LaneBasedTemplateGTUTypes
-
-
Method Details
-
draw
public final LaneBasedGtuCharacteristics draw() throws ProbabilityException, org.opentrafficsim.base.parameters.ParameterExceptionGenerate aLaneBasedGtuCharacteristics
object.- Specified by:
draw
in interfaceLaneBasedGtuCharacteristicsGenerator
- Returns:
- LaneBasedGtuCharacteristics
- Throws:
ProbabilityException
- when the generator is improperly configuredorg.opentrafficsim.base.parameters.ParameterException
- in case of a parameter problem.
-
toString
-