| 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.operational |
Operational plans describe a path through the world with a speed profile that a GTU intends to follow.
|
| 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 |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends PerceptionCategory<?,?>> |
Perception.getPerceptionCategory(Class<T> category)
Returns the given perception category.
|
<T extends PerceptionCategory<?,?>> |
AbstractPerception.getPerceptionCategory(Class<T> category)
Returns the given perception category.
|
| Modifier and Type | Method and Description |
|---|---|
static OperationalPlan |
OperationalPlanBuilder.buildConstantSpeedPlan(GTU gtu,
OTSLine3D path,
Time startTime,
Speed speed)
Build a plan with a path and a given speed.
|
static OperationalPlan |
OperationalPlanBuilder.buildGradualAccelerationPlan(GTU gtu,
OTSLine3D path,
Time startTime,
Speed startSpeed,
Speed endSpeed)
Build a plan with a path and a given start speed to reach a provided end speed, exactly at the end of the curve.
|
static OperationalPlan |
OperationalPlanBuilder.buildGradualAccelerationPlan(GTU gtu,
OTSLine3D path,
Time startTime,
Speed startSpeed,
Speed endSpeed,
Acceleration maxAcceleration,
Acceleration maxDeceleration)
Build a plan with a path and a given start speed to try to reach a provided end speed, exactly at the end of the curve.
|
static OperationalPlan |
OperationalPlanBuilder.buildMaximumAccelerationPlan(GTU gtu,
OTSLine3D path,
Time startTime,
Speed startSpeed,
Speed endSpeed,
Acceleration acceleration,
Acceleration deceleration)
Build a plan with a path and a given start speed to try to reach a provided end speed.
|
static OperationalPlan |
OperationalPlanBuilder.buildStopPlan(GTU gtu,
OTSLine3D path,
Time startTime,
Speed startSpeed,
Acceleration deceleration)
Build a plan with a path and a given start speed to try to come to a stop with a given deceleration.
|
Acceleration |
OperationalPlan.getAcceleration(Duration time)
Calculate the acceleration of the GTU after the given duration since the start of the plan.
|
Acceleration |
OperationalPlan.getAcceleration(Time time)
Calculate the acceleration of the GTU at the given time.
|
DirectedPoint |
OperationalPlan.getLocation(Duration time)
Calculate the location after the given duration since the start of the plan.
|
DirectedPoint |
OperationalPlan.getLocation(Time time)
Calculate the location at the given time.
|
DirectedPoint |
OperationalPlan.getLocation(Time time,
RelativePosition pos)
Calculate the location after the given duration since the start of the plan.
|
Speed |
OperationalPlan.getSpeed(Duration time)
Calculate the speed of the GTU after the given duration since the start of the plan.
|
Speed |
OperationalPlan.getSpeed(Time time)
Calculate the speed of the GTU at the given time.
|
Length |
OperationalPlan.getTraveledDistance(Duration duration)
Calculate the distance traveled as part of this plan after the given duration since the start of the plan.
|
Length |
OperationalPlan.getTraveledDistance(Time time)
Calculate the distance traveled as part of this plan at the given absolute time.
|
double |
OperationalPlan.getTraveledDistanceSI(Duration duration)
Calculate the distance traveled as part of this plan after the given duration since the start of the plan.
|
double |
OperationalPlan.getTraveledDistanceSI(Time time)
Calculate the distance traveled as part of this plan at the given absolute time.
|
static void |
OperationalPlanBuilder.main(String[] args)
Test.
|
| Constructor and Description |
|---|
OperationalPlan(GTU gtu,
DirectedPoint waitPoint,
Time startTime,
Duration duration)
Build a plan where the GTU will wait for a certain time.
|
OperationalPlan(GTU gtu,
OTSLine3D path,
Time startTime,
Speed startSpeed,
List<OperationalPlan.Segment> operationalPlanSegmentList)
Construct an operational plan.
|
| Modifier and Type | Method and Description |
|---|---|
OperationalPlan |
TacticalPlanner.generateOperationalPlan(Time startTime,
DirectedPoint locationAtStartTime)
generate an operational plan, for now or for in the future.
|
Copyright © 2014–2019 Delft University of Technology. All rights reserved.