Class LaneBasedTemplateGTUTypeDistribution
- java.lang.Object
-
- org.opentrafficsim.road.gtu.generator.characteristics.LaneBasedTemplateGTUTypeDistribution
-
- All Implemented Interfaces:
java.io.Serializable,LaneBasedGTUCharacteristicsGenerator
public class LaneBasedTemplateGTUTypeDistribution extends java.lang.Object implements LaneBasedGTUCharacteristicsGenerator, java.io.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.java.lang.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
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-