ID - The type of ID, e.g., String or Integerpublic abstract class AbstractLaneBasedTemplateGTU<ID> extends AbstractLaneBasedGTU<ID>
Copyright (c) 2013-2014 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(ID id,
TemplateGTUType<?> gtuType,
GTUFollowingModel gtuFollowingModel,
Map<Lane,DoubleScalar.Rel<LengthUnit>> initialLongitudinalPositions,
DoubleScalar.Abs<SpeedUnit> initialSpeed) |
| Modifier and Type | Method and Description |
|---|---|
TemplateGTUType<?> |
getGTUType() |
DoubleScalar.Rel<LengthUnit> |
getLength() |
DoubleScalar.Abs<SpeedUnit> |
getMaximumVelocity() |
OTSDEVSSimulatorInterface |
getSimulator() |
DoubleScalar.Rel<LengthUnit> |
getWidth() |
addFrontToSubsequentLane, addLane, deltaTimeForDistance, destroy, fractionalPosition, fractionalPosition, fractionalPositions, fractionalPositions, getAcceleration, getAcceleration, getBounds, getGTUFollowingModel, getLanes, getLastEvaluationTime, getLateralVelocity, getLocation, getLongitudinalVelocity, getLongitudinalVelocity, getNextEvaluationTime, headway, headway, move, parallel, parallel, position, position, positions, positions, projectedPosition, removeLane, timeAtDistance, toStringgetId, getReference, getRoute, setRouteclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFront, getId, getRear, getReference, getRelativePositionspublic AbstractLaneBasedTemplateGTU(ID id, TemplateGTUType<?> gtuType, GTUFollowingModel gtuFollowingModel, Map<Lane,DoubleScalar.Rel<LengthUnit>> initialLongitudinalPositions, DoubleScalar.Abs<SpeedUnit> initialSpeed) throws RemoteException, NetworkException, SimRuntimeException
id - the id of the GTU, could be String or Integer.gtuType - the type of GTU, e.g. TruckType, CarType, BusType.gtuFollowingModel - the following model, including a reference to the simulator.initialLongitudinalPositions - the initial positions of the car on one or more lanes.initialSpeed - the initial speed of the car on the lane.RemoteException - when the simulator cannot be reached.NetworkException - when the GTU cannot be placed on the given lane.SimRuntimeException - when the move method cannot be scheduled.public TemplateGTUType<?> getGTUType()
getGTUType in interface GTU<ID>getGTUType in class AbstractGTU<ID>public final DoubleScalar.Rel<LengthUnit> getLength()
public final DoubleScalar.Rel<LengthUnit> getWidth()
public final DoubleScalar.Abs<SpeedUnit> getMaximumVelocity()
public final OTSDEVSSimulatorInterface getSimulator()
Copyright © 2014–2015 Delft University of Technology. All rights reserved.