public class TemplateGTUType extends Object implements Serializable, Generator<GTUCharacteristics>
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2018-09-19 13:55:45 +0200 (Wed, 19 Sep 2018) $, @version $Revision: 4006 $, by $Author: averbraeck $,
initial version Jul 8, 2014
| Constructor and Description |
|---|
TemplateGTUType(GTUType gtuType,
Generator<org.djunits.value.vdouble.scalar.Length> lengthGenerator,
Generator<org.djunits.value.vdouble.scalar.Length> widthGenerator,
Generator<org.djunits.value.vdouble.scalar.Speed> maximumSpeedGenerator) |
TemplateGTUType(GTUType gtuType,
Generator<org.djunits.value.vdouble.scalar.Length> lengthGenerator,
Generator<org.djunits.value.vdouble.scalar.Length> widthGenerator,
Generator<org.djunits.value.vdouble.scalar.Speed> maximumSpeedGenerator,
Generator<org.djunits.value.vdouble.scalar.Acceleration> maximumAccelerationGenerator,
Generator<org.djunits.value.vdouble.scalar.Acceleration> maximumDecelerationGenerator) |
| Modifier and Type | Method and Description |
|---|---|
GTUCharacteristics |
draw()
Returns characteristics for the given GTU.
|
GTUType |
getGTUType() |
String |
toString() |
public TemplateGTUType(GTUType gtuType, Generator<org.djunits.value.vdouble.scalar.Length> lengthGenerator, Generator<org.djunits.value.vdouble.scalar.Length> widthGenerator, Generator<org.djunits.value.vdouble.scalar.Speed> maximumSpeedGenerator) throws NullPointerException
gtuType - GTUType, the GTUType to make it identifiable.lengthGenerator - Generator<Length>; generator for the length of the GTU type (parallel with driving
direction).widthGenerator - Generator<Length>; generator for the width of the GTU type (perpendicular to driving
direction).maximumSpeedGenerator - Generator<Speed>; generator for the maximum speed of the GTU type (in the driving
direction).NullPointerException - when one of the arguments is nullpublic TemplateGTUType(GTUType gtuType, Generator<org.djunits.value.vdouble.scalar.Length> lengthGenerator, Generator<org.djunits.value.vdouble.scalar.Length> widthGenerator, Generator<org.djunits.value.vdouble.scalar.Speed> maximumSpeedGenerator, Generator<org.djunits.value.vdouble.scalar.Acceleration> maximumAccelerationGenerator, Generator<org.djunits.value.vdouble.scalar.Acceleration> maximumDecelerationGenerator) throws NullPointerException
gtuType - GTUType, the GTUType to make it identifiable.lengthGenerator - Generator<Length>; generator for the length of the GTU type (parallel with driving
direction).widthGenerator - Generator<Length>; generator for the width of the GTU type (perpendicular to driving
direction).maximumSpeedGenerator - Generator<Speed>; generator for the maximum speed of the GTU type (in the driving
direction).maximumAccelerationGenerator - Generator<Acceleration>; generator for the maximum acceleration of the GTU typemaximumDecelerationGenerator - Generator<Acceleration>; generator for the maximum deceleration of the GTU typeNullPointerException - when one of the arguments is nullpublic GTUCharacteristics draw() throws ProbabilityException, org.opentrafficsim.base.parameters.ParameterException
draw in interface Generator<GTUCharacteristics>ProbabilityException - in case of probability exceptionorg.opentrafficsim.base.parameters.ParameterException - in case of parameter exceptionpublic GTUType getGTUType()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.