Package | Description |
---|---|
org.opentrafficsim.core.compatibility |
Compatibility package.
|
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.strategical |
Strategical planners.
|
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 |
---|---|
void |
GTUCompatibility.isCompatibleWith(Compatibility<GTUType,?> parentCompatibility,
boolean tryParentsOfGTUType)
Check if a GTUCompatibility does not allow things that the GTUCompatibility of a parent object disallows, e.g.
|
Modifier and Type | Method and Description |
---|---|
void |
GTU.addGtu(GTU gtu)
Adds the provided GTU to this GTU, meaning it moves with this GTU.
|
void |
AbstractGTU.addGtu(GTU gtu)
Adds the provided GTU to this GTU, meaning it moves with this GTU.
|
static GTUCharacteristics |
GTUType.defaultCharacteristics(GTUType gtuType,
nl.tudelft.simulation.jstats.streams.StreamInterface randomStream)
Returns default characteristics for given GTUType.
|
void |
AbstractGTU.init(StrategicalPlanner strategicalPlanner,
nl.tudelft.simulation.language.d3.DirectedPoint initialLocation,
org.djunits.value.vdouble.scalar.Speed initialSpeed)
Initialize the GTU at a location and speed, and give it a mission to fulfill through the strategical planner.
|
protected void |
AbstractGTU.interruptMove()
Interrupt the move and ask for a new plan.
|
protected void |
AbstractGTU.move(nl.tudelft.simulation.language.d3.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.setParent(GTU gtu)
Set the parent GTU.
|
void |
AbstractGTU.setParent(GTU gtu)
Set the parent GTU.
|
Constructor and Description |
---|
AbstractGTU(IdGenerator idGenerator,
GTUType gtuType,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator,
PerceivableContext perceivableContext) |
AbstractGTU(String id,
GTUType gtuType,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator,
PerceivableContext perceivableContext) |
AbstractLinkBasedGTU(String id,
GTUType gtuType,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator,
OTSNetwork network) |
Modifier and Type | Method and Description |
---|---|
G |
Perception.getGtu()
Return the GTU of this perception.
|
G |
AbstractPerceptionCategory.getGtu()
Returns the connected GTU.
|
org.djunits.value.vdouble.scalar.Time |
AbstractPerceptionCategory.getTimestamp()
Returns the current time.
|
void |
Perception.perceive()
Update the perceived information and store it in a stateful manner.
|
void |
AbstractPerception.perceive()
Update the perceived information and store it in a stateful manner.
|
void |
EgoPerception.updateAcceleration()
Update acceleration.
|
void |
DirectEgoPerception.updateAcceleration()
Update acceleration.
|
void |
PerceptionCategory.updateAll()
Update all information in the perception category.
|
default void |
EgoPerception.updateAll()
Update all information in the perception category.
|
void |
EgoPerception.updateLength()
Update length.
|
void |
DirectEgoPerception.updateLength()
Update length.
|
void |
EgoPerception.updateSpeed()
Update speed.
|
void |
DirectEgoPerception.updateSpeed()
Update speed.
|
void |
EgoPerception.updateWidth()
Update width.
|
void |
DirectEgoPerception.updateWidth()
Update width.
|
Modifier and Type | Method and Description |
---|---|
T |
StrategicalPlannerFactory.create(GTU gtu)
Creates a new strategical planner for the given GTU.
|
Modifier and Type | Method and Description |
---|---|
T |
TacticalPlannerFactory.create(GTU gtu)
Creates a new tactical planner for the given GTU.
|
OperationalPlan |
TacticalPlanner.generateOperationalPlan(org.djunits.value.vdouble.scalar.Time startTime,
nl.tudelft.simulation.language.d3.DirectedPoint locationAtStartTime)
generate an operational plan, for now or for in the future.
|
Copyright © 2014–2018 Delft University of Technology. All rights reserved.