public class LaneBasedTemplateGTUType
extends org.opentrafficsim.core.gtu.TemplateGTUType
Copyright (c) 2013-2015 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(String id,
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> lengthDist,
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> widthDist,
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> maximumSpeedDist,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
Class<LaneBasedStrategicalPlanner> strategicalPlannerClass,
Class<LanePerceptionFull> perceptionClass) |
| Modifier and Type | Method and Description |
|---|---|
protected LanePerceptionFull |
instantiatePerception() |
protected LaneBasedStrategicalPlanner |
instantiateStrategicalPlanner() |
public LaneBasedTemplateGTUType(String id, org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> lengthDist, org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> widthDist, org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> maximumSpeedDist, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, Class<LaneBasedStrategicalPlanner> strategicalPlannerClass, Class<LanePerceptionFull> perceptionClass) throws org.opentrafficsim.core.gtu.GTUException
id - The id of the GTUType to make it identifiable.lengthDist - the length of the GTU type (parallel with driving direction).widthDist - the width of the GTU type (perpendicular to driving direction).maximumSpeedDist - the maximum speed of the GTU type (in the driving direction).simulator - the simulator.strategicalPlannerClass - the strategical planner (e.g., route determination) to useperceptionClass - the lane-based perception model of the GTUorg.opentrafficsim.core.gtu.GTUException - when GTUType defined more than onceprotected LanePerceptionFull instantiatePerception() throws InstantiationException, IllegalAccessException
InstantiationException - in case instantiation failsIllegalAccessException - in case constructor is not publicprotected LaneBasedStrategicalPlanner instantiateStrategicalPlanner() throws InstantiationException, IllegalAccessException
InstantiationException - in case instantiation failsIllegalAccessException - in case constructor is not publicCopyright © 2014–2016 Delft University of Technology. All rights reserved.