Class LaneBasedTemplateGTUTypeDistribution
- java.lang.Object
-
- org.opentrafficsim.road.gtu.generator.characteristics.LaneBasedTemplateGTUTypeDistribution
-
- All Implemented Interfaces:
Serializable
,LaneBasedGTUCharacteristicsGenerator
public class LaneBasedTemplateGTUTypeDistribution extends Object implements LaneBasedGTUCharacteristicsGenerator, Serializable
Distribution of LaneBasedTemplateGTUType.Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version Mar 9, 2016
- Author:
- Alexander Verbraeck, Peter Knoppers
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LaneBasedTemplateGTUTypeDistribution(Distribution<LaneBasedTemplateGTUType> distributionOfLanebasedTemplateGTUType)
Construct a new LaneBasedTemplateGTUTypeDistribution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LaneBasedGTUCharacteristics
draw()
Generate a LaneBasedGTUCharacteristics object.String
toString()
-
-
-
Constructor Detail
-
LaneBasedTemplateGTUTypeDistribution
public LaneBasedTemplateGTUTypeDistribution(Distribution<LaneBasedTemplateGTUType> distributionOfLanebasedTemplateGTUType)
Construct a new LaneBasedTemplateGTUTypeDistribution.- Parameters:
distributionOfLanebasedTemplateGTUType
- Distribution<LaneBasedTemplateGTUType>; the distribution of LaneBasedTemplateGTUTypes
-
-
Method Detail
-
draw
public final LaneBasedGTUCharacteristics draw() throws ProbabilityException, org.opentrafficsim.base.parameters.ParameterException, GTUException
Generate a LaneBasedGTUCharacteristics 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.GTUException
- if strategical planner cannot be created
-
-