public abstract class AbstractLinkBasedGTU extends AbstractGTU
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
ALIGN_COUNT, ALIGNED
DESTROY_EVENT, INIT_EVENT, MOVE_EVENT
Constructor and Description |
---|
AbstractLinkBasedGTU(String id,
GTUType gtuType,
OTSDEVSSimulatorInterface 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) |
destroy, equals, getAcceleration, getBaseColor, getGTUType, getId, getLocation, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOperationalPlan, getPerceivableContext, getReference, getSimulator, getSpeed, getStrategicalPlanner, getTacticalPlanner, getTurnIndicatorStatus, hashCode, init, interruptMove, isDestroyed, move, setMaximumAcceleration, setMaximumDeceleration, setTurnIndicatorStatus
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
getBehavioralCharacteristics, getCenter, getContourPoints, getFront, getLength, getMaximumSpeed, getRear, getRelativePositions, getWidth
public AbstractLinkBasedGTU(String id, GTUType gtuType, OTSDEVSSimulatorInterface 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–2017 Delft University of Technology. All rights reserved.