public abstract class AbstractLinkBasedGTU extends AbstractGTU
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 |
|---|
AbstractLinkBasedGTU(String id,
GTUType gtuType,
OTSDEVSSimulatorInterface simulator,
StrategicalPlanner strategicalPlanner,
Perception perception,
DirectedPoint initialLocation,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
OTSNetwork network) |
| Modifier and Type | Method and Description |
|---|---|
OTSNetwork |
getNetwork() |
void |
setNetwork(OTSNetwork network) |
destroy, getAcceleration, getAcceleration, getGTUType, getId, getLocation, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOperationalPlan, getPerception, getReference, getSimulator, getStrategicalPlanner, getTacticalPlanner, getVelocity, getVelocity, interruptMove, move, setMaximumAcceleration, setMaximumDecelerationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBounds, getDrivingCharacteristics, getFront, getLength, getMaximumVelocity, getRear, getRelativePositions, getWidthpublic AbstractLinkBasedGTU(String id, GTUType gtuType, OTSDEVSSimulatorInterface simulator, StrategicalPlanner strategicalPlanner, Perception perception, DirectedPoint initialLocation, org.djunits.value.vdouble.scalar.Speed initialSpeed, OTSNetwork network) throws SimRuntimeException, GTUException
id - the id of the GTUgtuType - the type of GTU, e.g. TruckType, CarType, BusTypesimulator - the simulator to schedule plan changes onstrategicalPlanner - the planner responsible for the overall 'mission' of the GTU, usually indicating where it needs
to go. It operates by instantiating tactical planners to do the work.perception - the perception unit that takes care of observing the environment of the GTUinitialLocation - the initial location (and direction) of the GTUinitialSpeed - the initial speed of the GTUnetwork - the network in which this GTU is (initially) registeredSimRuntimeException - when scheduling after the first move failsGTUException - when the construction of the original waiting path failspublic final OTSNetwork getNetwork()
public final void setNetwork(OTSNetwork network)
network - change the network this GTU is registered inCopyright © 2014–2016 Delft University of Technology. All rights reserved.