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
Modifier and Type Method Description LaneBasedGTUCharacteristicsdraw()Generate a LaneBasedGTUCharacteristics object.StringtoString()
-
Constructor Details
-
LaneBasedTemplateGTUTypeDistribution
public LaneBasedTemplateGTUTypeDistribution(Distribution<LaneBasedTemplateGTUType> distributionOfLanebasedTemplateGTUType)Construct a new LaneBasedTemplateGTUTypeDistribution.- Parameters:
distributionOfLanebasedTemplateGTUType- Distribution<LaneBasedTemplateGTUType>; the distribution of LaneBasedTemplateGTUTypes
-
-
Method Details
-
draw
public final LaneBasedGTUCharacteristics draw() throws ProbabilityException, ParameterException, GTUExceptionGenerate 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
-
toString
-