public abstract class AbstractLaneBasedTemplateGTU extends AbstractLaneBasedGTU
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 |
---|
AbstractLaneBasedTemplateGTU(String id,
org.opentrafficsim.core.gtu.TemplateGTUType templateGTUType,
GTUFollowingModel gtuFollowingModel,
Map<Lane,org.djunits.value.vdouble.scalar.Length.Rel> initialLongitudinalPositions,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
CompleteLaneBasedRouteNavigator routeNavigator) |
Modifier and Type | Method and Description |
---|---|
org.opentrafficsim.core.gtu.GTUType |
getGTUType() |
org.djunits.value.vdouble.scalar.Length.Rel |
getLength() |
org.djunits.value.vdouble.scalar.Speed |
getMaximumVelocity() |
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface |
getSimulator() |
org.djunits.value.vdouble.scalar.Length.Rel |
getWidth() |
bestAccessibleAdjacentLane, deltaTimeForDistance, destroy, enterLane, fractionalPosition, fractionalPosition, fractionalPositions, fractionalPositions, getAcceleration, getAcceleration, getBounds, getGTUFollowingModel, getLaneChangeDistanceAndDirection, getLanes, getLastEvaluationTime, getLateralVelocity, getLocation, getLongitudinalVelocity, getLongitudinalVelocity, getNextEvaluationTime, getOdometer, getRouteNavigator, getVelocity, headway, headway, leaveLane, leaveLane, move, parallel, parallel, position, position, positions, positions, projectedPosition, timeAtDistance, toString
getId, getReference, setRouteNavigator
public AbstractLaneBasedTemplateGTU(String id, org.opentrafficsim.core.gtu.TemplateGTUType templateGTUType, GTUFollowingModel gtuFollowingModel, Map<Lane,org.djunits.value.vdouble.scalar.Length.Rel> initialLongitudinalPositions, org.djunits.value.vdouble.scalar.Speed initialSpeed, CompleteLaneBasedRouteNavigator routeNavigator) throws org.opentrafficsim.core.network.NetworkException, nl.tudelft.simulation.dsol.SimRuntimeException, org.opentrafficsim.core.gtu.GTUException
id
- the id of the GTUtemplateGTUType
- the TemplateGTUType, e.g. TruckType, CarType, BusTypegtuFollowingModel
- the following model, including a reference to the simulatorinitialLongitudinalPositions
- the initial positions of the car on one or more lanesinitialSpeed
- the initial speed of the car on the lanerouteNavigator
- RouteNavigator; the navigator that the GTU will useorg.opentrafficsim.core.network.NetworkException
- when the GTU cannot be placed on the given lanenl.tudelft.simulation.dsol.SimRuntimeException
- when the move method cannot be scheduledorg.opentrafficsim.core.gtu.GTUException
- when gtuFollowingModel is nullpublic org.opentrafficsim.core.gtu.GTUType getGTUType()
getGTUType
in interface org.opentrafficsim.core.gtu.GTU
getGTUType
in class org.opentrafficsim.core.gtu.AbstractGTU
public final org.djunits.value.vdouble.scalar.Length.Rel getLength()
public final org.djunits.value.vdouble.scalar.Length.Rel getWidth()
public final org.djunits.value.vdouble.scalar.Speed getMaximumVelocity()
public final org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface getSimulator()
Copyright © 2014–2015 Delft University of Technology. All rights reserved.