public interface GTU extends Locatable, Serializable, EventProducerInterface, Identifiable, Drawable
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.
Modifier and Type | Field and Description |
---|---|
static EventType |
DESTROY_EVENT
The event type for pub/sub indicating destruction of the GTU.
|
static EventType |
INIT_EVENT
The event type for pub/sub indicating the initialization of a new GTU.
|
static EventType |
MOVE_EVENT
The event type for pub/sub indicating a move.
|
FIRST_POSITION, LAST_POSITION
getBounds, getLocation
addListener, addListener, addListener, addListener, removeListener
static final EventType INIT_EVENT
static final EventType MOVE_EVENT
static final EventType DESTROY_EVENT
String getId()
getId
in interface Identifiable
PerceivableContext getPerceivableContext()
Length getLength()
Length getWidth()
Speed getMaximumSpeed()
Acceleration getMaximumAcceleration()
Acceleration getMaximumDeceleration()
GTUType getGTUType()
OTSSimulatorInterface getSimulator()
RelativePosition getReference()
RelativePosition getFront()
RelativePosition getRear()
RelativePosition getCenter()
ImmutableSet<RelativePosition> getContourPoints()
ImmutableMap<RelativePosition.TYPE,RelativePosition> getRelativePositions()
Speed getSpeed()
Speed getSpeed(Time time)
time
- Time; time at which to obtain the speedAcceleration getAcceleration()
Acceleration getAcceleration(Time time)
time
- Time; time at which to obtain the accelerationLength getOdometer()
Length getOdometer(Time time)
time
- Time; time to obtain the odometer atParameters getParameters()
void setParameters(Parameters parameters)
parameters
- Parameters; parametersStrategicalPlanner getStrategicalPlanner()
StrategicalPlanner getStrategicalPlanner(Time time)
time
- Time; time to obtain the strategical planner atdefault TacticalPlanner<?,?> getTacticalPlanner()
default TacticalPlanner<?,?> getTacticalPlanner(Time time)
time
- Time; time to obtain the tactical planner atOperationalPlan getOperationalPlan()
OperationalPlan getOperationalPlan(Time time)
time
- Time; time to obtain the operational plan atvoid destroy()
boolean isDestroyed()
void addGtu(GTU gtu) throws GTUException
gtu
- GTU; gtu to enter this GTUGTUException
- if the gtu already has a parentvoid removeGtu(GTU gtu)
gtu
- GTU; gtu to exit this GTUvoid setParent(GTU gtu) throws GTUException
gtu
- GTU; parent GTU, may be null
GTUException
- if the gtu already has a parentGTU getParent()
null
if this GTU has no parent.null
if this GTU has no parentCopyright © 2014–2019 Delft University of Technology. All rights reserved.