Class LaneBasedGtuTemplateDistribution
java.lang.Object
org.opentrafficsim.road.gtu.generator.characteristics.LaneBasedGtuTemplateDistribution
- All Implemented Interfaces:
LaneBasedGtuCharacteristicsGenerator
public class LaneBasedGtuTemplateDistribution
extends Object
implements LaneBasedGtuCharacteristicsGenerator
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
-
Constructor Summary
ConstructorsConstructorDescriptionLaneBasedGtuTemplateDistribution(ObjectDistribution<LaneBasedGtuTemplate> distributionOfLanebasedTemplateGTUType) Construct a new LaneBasedTemplateGTUTypeDistribution. -
Method Summary
-
Constructor Details
-
LaneBasedGtuTemplateDistribution
public LaneBasedGtuTemplateDistribution(ObjectDistribution<LaneBasedGtuTemplate> distributionOfLanebasedTemplateGTUType) Construct a new LaneBasedTemplateGTUTypeDistribution.- Parameters:
distributionOfLanebasedTemplateGTUType- the distribution of LaneBasedTemplateGTUTypes
-
-
Method Details
-
draw
Description copied from interface:LaneBasedGtuCharacteristicsGeneratorGenerate aLaneBasedGtuCharacteristicsobject.- Specified by:
drawin interfaceLaneBasedGtuCharacteristicsGenerator- Returns:
- LaneBasedGtuCharacteristics
- Throws:
ParameterException- in case of a parameter problem.
-
toString
-