ID
- The type of ID, e.g., String or Integerpublic abstract class AbstractLaneBasedIndividualGTU<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 |
---|
AbstractLaneBasedIndividualGTU(ID id,
GTUType<?> gtuType,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
Map<Lane,DoubleScalar.Rel<LengthUnit>> initialLongitudinalPositions,
DoubleScalar.Abs<SpeedUnit> initialSpeed,
DoubleScalar.Rel<LengthUnit> length,
DoubleScalar.Rel<LengthUnit> width,
DoubleScalar.Abs<SpeedUnit> maximumVelocity,
OTSDEVSSimulatorInterface simulator)
Construct a new AbstractLaneBasedIndividualGTU.
|
Modifier and Type | Method and Description |
---|---|
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, toString
getGTUType, getId, getReference, getRoute, setRoute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFront, getGTUType, getId, getRear, getReference, getRelativePositions
public AbstractLaneBasedIndividualGTU(ID id, GTUType<?> gtuType, GTUFollowingModel gtuFollowingModel, LaneChangeModel laneChangeModel, Map<Lane,DoubleScalar.Rel<LengthUnit>> initialLongitudinalPositions, DoubleScalar.Abs<SpeedUnit> initialSpeed, DoubleScalar.Rel<LengthUnit> length, DoubleScalar.Rel<LengthUnit> width, DoubleScalar.Abs<SpeedUnit> maximumVelocity, OTSDEVSSimulatorInterface simulator) throws RemoteException, NetworkException, nl.tudelft.simulation.dsol.SimRuntimeException, GTUException
id
- the id of the GTU, could be String or IntegergtuType
- the type of GTU, e.g. TruckType, CarType, BusTypegtuFollowingModel
- the following model, including a reference to the simulatorlaneChangeModel
- LaneChangeModel; the lane change modelinitialLongitudinalPositions
- the initial positions of the car on one or more lanesinitialSpeed
- the initial speed of the car on the lanelength
- the maximum length of the GTU (parallel with driving direction)width
- the maximum width of the GTU (perpendicular to driving direction)maximumVelocity
- the maximum speed of the GTU (in the driving direction)simulator
- the simulatorRemoteException
- when the simulator cannot be reachedNetworkException
- when the GTU cannot be placed on the given lanenl.tudelft.simulation.dsol.SimRuntimeException
- when the move method cannot be scheduledGTUException
- when a parameter is invalidpublic 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.