public class LaneBasedTemplateGTUType extends org.opentrafficsim.core.gtu.TemplateGTUType implements LaneBasedGTUCharacteristicsGenerator
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
LaneBasedTemplateGTUType(org.opentrafficsim.core.gtu.GTUType gtuType,
org.opentrafficsim.core.distributions.Generator<org.djunits.value.vdouble.scalar.Length> lengthGenerator,
org.opentrafficsim.core.distributions.Generator<org.djunits.value.vdouble.scalar.Length> widthGenerator,
org.opentrafficsim.core.distributions.Generator<org.djunits.value.vdouble.scalar.Speed> maximumSpeedGenerator,
LaneBasedStrategicalPlannerFactory<?> strategicalPlannerFactory,
org.opentrafficsim.core.network.route.RouteGenerator routeGenerator) |
| Modifier and Type | Method and Description |
|---|---|
LaneBasedGTUCharacteristics |
draw()
Generate the properties of the next GTU.
|
String |
toString() |
public LaneBasedTemplateGTUType(org.opentrafficsim.core.gtu.GTUType gtuType,
org.opentrafficsim.core.distributions.Generator<org.djunits.value.vdouble.scalar.Length> lengthGenerator,
org.opentrafficsim.core.distributions.Generator<org.djunits.value.vdouble.scalar.Length> widthGenerator,
org.opentrafficsim.core.distributions.Generator<org.djunits.value.vdouble.scalar.Speed> maximumSpeedGenerator,
LaneBasedStrategicalPlannerFactory<?> strategicalPlannerFactory,
org.opentrafficsim.core.network.route.RouteGenerator routeGenerator)
throws NullPointerException
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).strategicalPlannerFactory - Factory for the strategical planner (e.g., route determination)routeGenerator - route generatorNullPointerException - when one or more parameters are nullpublic final LaneBasedGTUCharacteristics draw() throws org.opentrafficsim.core.distributions.ProbabilityException, org.opentrafficsim.base.parameters.ParameterException
draw in interface org.opentrafficsim.core.distributions.Generator<org.opentrafficsim.core.gtu.GTUCharacteristics>draw in interface LaneBasedGTUCharacteristicsGeneratordraw in class org.opentrafficsim.core.gtu.TemplateGTUTypeorg.opentrafficsim.core.distributions.ProbabilityException - when a generator is improperly configuredorg.opentrafficsim.base.parameters.ParameterException - in case of a parameter problem.public String toString()
toString in class org.opentrafficsim.core.gtu.TemplateGTUTypeCopyright © 2014–2018 Delft University of Technology. All rights reserved.