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,
TemplateGTUType templateGTUType,
GTUFollowingModel gtuFollowingModel,
Map<Lane,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit>> initialLongitudinalPositions,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> initialSpeed,
CompleteLaneBasedRouteNavigator routeNavigator) |
| Modifier and Type | Method and Description |
|---|---|
GTUType |
getGTUType() |
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
getLength() |
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> |
getMaximumVelocity() |
OTSDEVSSimulatorInterface |
getSimulator() |
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
getWidth() |
bestAccessibleAdjacentLane, deltaTimeForDistance, destroy, enterLane, fractionalPosition, fractionalPosition, fractionalPositions, fractionalPositions, getAcceleration, getAcceleration, getBounds, getGTUFollowingModel, getLaneChangeDistanceAndDirection, getLanes, getLastEvaluationTime, getLateralVelocity, getLocation, getLongitudinalVelocity, getLongitudinalVelocity, getNextEvaluationTime, getOdometer, getVelocity, headway, headway, leaveLane, leaveLane, move, parallel, parallel, position, position, positions, positions, projectedPosition, timeAtDistance, toStringgetId, getReference, getRouteNavigator, setRouteNavigatorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFront, getId, getRear, getReference, getRelativePositionspublic AbstractLaneBasedTemplateGTU(String id, TemplateGTUType templateGTUType, GTUFollowingModel gtuFollowingModel, Map<Lane,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit>> initialLongitudinalPositions, org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> initialSpeed, CompleteLaneBasedRouteNavigator routeNavigator) throws RemoteException, NetworkException, SimRuntimeException, 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 useRemoteException - when the simulator cannot be reachedNetworkException - when the GTU cannot be placed on the given laneSimRuntimeException - when the move method cannot be scheduledGTUException - when gtuFollowingModel is nullpublic GTUType getGTUType()
getGTUType in interface GTUgetGTUType in class AbstractGTUpublic final org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> getLength()
public final org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> getWidth()
public final org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> getMaximumVelocity()
public final OTSDEVSSimulatorInterface getSimulator()
Copyright © 2014–2015 Delft University of Technology. All rights reserved.