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-2020 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 LaneBasedGTUCharacteristicsdraw()Generate a LaneBasedGTUCharacteristics object.StringtoString()
-
-
-
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, ParameterException, GtuException
Generate a LaneBasedGTUCharacteristics object.- Specified by:
drawin interfaceLaneBasedGTUCharacteristicsGenerator- Returns:
- LaneBasedGTUCharacteristics
- Throws:
ProbabilityException- when the generator is improperly configuredParameterException- in case of a parameter problem.GtuException- if strategical planner cannot be created
-
-