public interface GTU extends nl.tudelft.simulation.dsol.animation.Locatable, Serializable, nl.tudelft.simulation.event.EventProducerInterface
Copyright (c) 2013-2016 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 nl.tudelft.simulation.event.EventType |
DESTROY_EVENT
The event type for pub/sub indicating destruction of the GTU.
|
static nl.tudelft.simulation.event.EventType |
INIT_EVENT
The event type for pub/sub indicating the initialization of a new GTU.
|
static nl.tudelft.simulation.event.EventType |
MOVE_EVENT
The event type for pub/sub indicating a move.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the GTU from the simulation and animation.
|
org.djunits.value.vdouble.scalar.Acceleration |
getAcceleration() |
Color |
getBaseColor()
Return the base color of the GTU (not the state-based color).
|
BehavioralCharacteristics |
getBehavioralCharacteristics() |
RelativePosition |
getCenter() |
org.opentrafficsim.base.immutablecollections.ImmutableSet<RelativePosition> |
getContourPoints() |
RelativePosition |
getFront() |
GTUType |
getGTUType() |
String |
getId() |
org.djunits.value.vdouble.scalar.Length |
getLength() |
org.djunits.value.vdouble.scalar.Acceleration |
getMaximumAcceleration() |
org.djunits.value.vdouble.scalar.Acceleration |
getMaximumDeceleration() |
org.djunits.value.vdouble.scalar.Speed |
getMaximumSpeed() |
org.djunits.value.vdouble.scalar.Length |
getOdometer() |
OperationalPlan |
getOperationalPlan() |
RelativePosition |
getRear() |
RelativePosition |
getReference() |
org.opentrafficsim.base.immutablecollections.ImmutableMap<RelativePosition.TYPE,RelativePosition> |
getRelativePositions() |
OTSDEVSSimulatorInterface |
getSimulator() |
org.djunits.value.vdouble.scalar.Speed |
getSpeed() |
StrategicalPlanner |
getStrategicalPlanner() |
TacticalPlanner |
getTacticalPlanner() |
TurnIndicatorStatus |
getTurnIndicatorStatus() |
org.djunits.value.vdouble.scalar.Length |
getWidth() |
void |
setTurnIndicatorStatus(TurnIndicatorStatus turnIndicatorStatus)
Set the status of the turn indicator.
|
static final nl.tudelft.simulation.event.EventType INIT_EVENT
static final nl.tudelft.simulation.event.EventType MOVE_EVENT
static final nl.tudelft.simulation.event.EventType DESTROY_EVENT
String getId()
org.djunits.value.vdouble.scalar.Length getLength()
org.djunits.value.vdouble.scalar.Length getWidth()
org.djunits.value.vdouble.scalar.Speed getMaximumSpeed()
org.djunits.value.vdouble.scalar.Acceleration getMaximumAcceleration()
org.djunits.value.vdouble.scalar.Acceleration getMaximumDeceleration()
GTUType getGTUType()
OTSDEVSSimulatorInterface getSimulator()
RelativePosition getReference()
RelativePosition getFront()
RelativePosition getRear()
RelativePosition getCenter()
org.opentrafficsim.base.immutablecollections.ImmutableSet<RelativePosition> getContourPoints()
org.opentrafficsim.base.immutablecollections.ImmutableMap<RelativePosition.TYPE,RelativePosition> getRelativePositions()
org.djunits.value.vdouble.scalar.Speed getSpeed()
org.djunits.value.vdouble.scalar.Acceleration getAcceleration()
org.djunits.value.vdouble.scalar.Length getOdometer()
BehavioralCharacteristics getBehavioralCharacteristics()
StrategicalPlanner getStrategicalPlanner()
TacticalPlanner getTacticalPlanner()
OperationalPlan getOperationalPlan()
TurnIndicatorStatus getTurnIndicatorStatus()
void setTurnIndicatorStatus(TurnIndicatorStatus turnIndicatorStatus) throws GTUException
turnIndicatorStatus
- the new status of the turn indicator.GTUException
- when GTUType does not have a turn indicatorvoid destroy()
Color getBaseColor()
Copyright © 2014–2016 Delft University of Technology. All rights reserved.