public abstract class AbstractLinkBasedGTU extends AbstractGTU
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
ALIGN_COUNT, ALIGNED, operationalPlan
listeners
DESTROY_EVENT, INIT_EVENT, MOVE_EVENT
FIRST_POSITION, LAST_POSITION
Constructor and Description |
---|
AbstractLinkBasedGTU(String id,
GTUType gtuType,
DEVSSimulatorInterface.TimeDoubleUnit simulator,
OTSNetwork network) |
Modifier and Type | Method and Description |
---|---|
abstract Link |
getLink()
Return the link on which the REFERENCE position of the GTU currently is on.
|
OTSNetwork |
getNetwork() |
void |
setNetwork(OTSNetwork network) |
addGtu, destroy, equals, getAcceleration, getAcceleration, getBaseColor, getChildren, getGTUType, getId, getLocation, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOdometer, getOperationalPlan, getOperationalPlan, getParameters, getParent, getPerceivableContext, getReference, getSimulator, getSpeed, getSpeed, getStrategicalPlanner, getStrategicalPlanner, hashCode, init, interruptMove, isDestroyed, move, removeGtu, setMaximumAcceleration, setMaximumDeceleration, setParameters, setParent
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListener
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getCenter, getContourPoints, getFront, getLength, getMaximumSpeed, getRear, getRelativePositions, getTacticalPlanner, getTacticalPlanner, getWidth
addListener, addListener, addListener, addListener, removeListener
public AbstractLinkBasedGTU(String id, GTUType gtuType, DEVSSimulatorInterface.TimeDoubleUnit simulator, OTSNetwork network) throws GTUException
id
- the id of the GTUgtuType
- the type of GTU, e.g. TruckType, CarType, BusTypesimulator
- the simulator to schedule plan changes onnetwork
- the network in which this GTU is (initially) registeredGTUException
- 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 inpublic abstract Link getLink()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.