public abstract class AbstractLinkBasedGTU extends AbstractGTU
Copyright (c) 2013-2019 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,
OTSSimulatorInterface 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, getChildren, getGTUType, getId, getLocation, getMaximumAcceleration, getMaximumDeceleration, getNextMoveEvent, 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, OTSSimulatorInterface simulator, OTSNetwork network) throws GTUException
id
- String; the id of the GTUgtuType
- GTUType; the type of GTU, e.g. TruckType, CarType, BusTypesimulator
- OTSSimulatorInterface; the simulator to schedule plan changes onnetwork
- OTSNetwork; 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
- OTSNetwork; change the network this GTU is registered inpublic abstract Link getLink()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.