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,
nl.tudelft.simulation.language.d3.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, setMaximumDeceleration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBounds, getDrivingCharacteristics, getFront, getLength, getMaximumVelocity, getRear, getRelativePositions, getWidth
public AbstractLinkBasedGTU(String id, GTUType gtuType, OTSDEVSSimulatorInterface simulator, StrategicalPlanner strategicalPlanner, Perception perception, nl.tudelft.simulation.language.d3.DirectedPoint initialLocation, org.djunits.value.vdouble.scalar.Speed initialSpeed, OTSNetwork network) throws nl.tudelft.simulation.dsol.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) registerednl.tudelft.simulation.dsol.SimRuntimeException
- 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.