| Package | Description |
|---|---|
| org.opentrafficsim.core.gtu |
GTU (Generalized Travel Unit) is the base class for cars, trains, pedestrians, etc.
|
| org.opentrafficsim.core.gtu.perception |
The perception module of a GTU is responsible for perceiving (sensing) the environment of the GTU, which includes the
locations of other GTUs.
|
| org.opentrafficsim.core.gtu.plan.tactical |
Tactical planners generate operational plans that are in line with reaching the goals of the strategical plan.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
GTUException.failIf(boolean condition,
String message)
Throw an Exception if a condition is met, e.g.
|
org.djunits.value.vdouble.scalar.Acceleration |
GTU.getAcceleration(org.djunits.value.vdouble.scalar.Time.Abs time) |
org.djunits.value.vdouble.scalar.Speed |
GTU.getVelocity(org.djunits.value.vdouble.scalar.Time.Abs time) |
protected void |
AbstractGTU.interruptMove()
Interrupt the move and ask for a new plan.
|
protected void |
AbstractGTU.move(DirectedPoint fromLocation)
Move from the current location according to an operational plan to a location that will bring us nearer to reaching the
location provided by the strategical planner.
|
void |
GTU.setTurnIndicatorStatus(TurnIndicatorStatus turnIndicatorStatus)
Set the status of the turn indicator.
|
void |
AbstractGTU.setTurnIndicatorStatus(TurnIndicatorStatus turnIndicatorStatus)
Set the status of the turn indicator.
|
| Constructor and Description |
|---|
AbstractGTU(IdGenerator idGenerator,
GTUType gtuType,
OTSDEVSSimulatorInterface simulator,
StrategicalPlanner strategicalPlanner,
Perception perception,
DirectedPoint initialLocation,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
PerceivableContext perceivableContext) |
AbstractGTU(String id,
GTUType gtuType,
OTSDEVSSimulatorInterface simulator,
StrategicalPlanner strategicalPlanner,
Perception perception,
DirectedPoint initialLocation,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
PerceivableContext perceivableContext) |
AbstractLinkBasedGTU(String id,
GTUType gtuType,
OTSDEVSSimulatorInterface simulator,
StrategicalPlanner strategicalPlanner,
Perception perception,
DirectedPoint initialLocation,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
OTSNetwork network) |
TemplateGTUType(String typeId,
IdGenerator idGenerator,
Generator<org.djunits.value.vdouble.scalar.Length.Rel> lengthGenerator,
Generator<org.djunits.value.vdouble.scalar.Length.Rel> widthGenerator,
Generator<org.djunits.value.vdouble.scalar.Speed> maximumVelocityGenerator,
OTSDEVSSimulatorInterface simulator,
OTSNetwork network) |
| Modifier and Type | Method and Description |
|---|---|
void |
Perception.perceive()
Update the perceived information and store it in a stateful manner.
|
| Modifier and Type | Method and Description |
|---|---|
OperationalPlan |
TacticalPlanner.generateOperationalPlan(GTU gtu,
org.djunits.value.vdouble.scalar.Time.Abs startTime,
DirectedPoint locationAtStartTime)
generate an operational plan, for now or for in the future.
|
Copyright © 2014–2016 Delft University of Technology. All rights reserved.