| 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 AbstractPerceptionCategory> |
Perception.getPerceptionCategory(Class<T> clazz)
Returns the given perception category.
|
<T extends AbstractPerceptionCategory> |
AbstractPerception.getPerceptionCategory(Class<T> clazz)
Returns the given perception category.
|
| Modifier and Type | Method and Description |
|---|---|
static OperationalPlan |
OperationalPlanBuilder.buildConstantSpeedPlan(GTU gtu,
OTSLine3D path,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Speed speed)
Build a plan with a path and a given speed.
|
static OperationalPlan |
OperationalPlanBuilder.buildGradualAccelerationPlan(GTU gtu,
OTSLine3D path,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Speed startSpeed,
org.djunits.value.vdouble.scalar.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,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Speed startSpeed,
org.djunits.value.vdouble.scalar.Speed endSpeed,
org.djunits.value.vdouble.scalar.Acceleration maxAcceleration,
org.djunits.value.vdouble.scalar.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,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Speed startSpeed,
org.djunits.value.vdouble.scalar.Speed endSpeed,
org.djunits.value.vdouble.scalar.Acceleration acceleration,
org.djunits.value.vdouble.scalar.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,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Speed startSpeed,
org.djunits.value.vdouble.scalar.Acceleration deceleration)
Build a plan with a path and a given start speed to try to come to a stop with a given deceleration.
|
org.djunits.value.vdouble.scalar.Acceleration |
OperationalPlan.getAcceleration(org.djunits.value.vdouble.scalar.Duration time)
Calculate the acceleration of the GTU after the given duration since the start of the plan.
|
org.djunits.value.vdouble.scalar.Acceleration |
OperationalPlan.getAcceleration(org.djunits.value.vdouble.scalar.Time time)
Calculate the acceleration of the GTU at the given time.
|
DirectedPoint |
OperationalPlan.getLocation(org.djunits.value.vdouble.scalar.Duration time)
Calculate the location after the given duration since the start of the plan.
|
DirectedPoint |
OperationalPlan.getLocation(org.djunits.value.vdouble.scalar.Time time)
Calculate the location at the given time.
|
org.djunits.value.vdouble.scalar.Speed |
OperationalPlan.getSpeed(org.djunits.value.vdouble.scalar.Duration time)
Calculate the speed of the GTU after the given duration since the start of the plan.
|
org.djunits.value.vdouble.scalar.Speed |
OperationalPlan.getSpeed(org.djunits.value.vdouble.scalar.Time time)
Calculate the speed of the GTU at the given time.
|
org.djunits.value.vdouble.scalar.Length |
OperationalPlan.getTraveledDistance(org.djunits.value.vdouble.scalar.Duration duration)
Calculate the distance traveled as part of this plan after the given duration since the start of the plan.
|
org.djunits.value.vdouble.scalar.Length |
OperationalPlan.getTraveledDistance(org.djunits.value.vdouble.scalar.Time time)
Calculate the distance traveled as part of this plan at the given absolute time.
|
double |
OperationalPlan.getTraveledDistanceSI(org.djunits.value.vdouble.scalar.Duration duration)
Calculate the distance traveled as part of this plan after the given duration since the start of the plan.
|
double |
OperationalPlan.getTraveledDistanceSI(org.djunits.value.vdouble.scalar.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,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Duration duration)
Build a plan where the GTU will wait for a certain time.
|
OperationalPlan(GTU gtu,
OTSLine3D path,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Speed startSpeed,
List<OperationalPlan.Segment> operationalPlanSegmentList)
Construct an operational plan.
|
| Modifier and Type | Method and Description |
|---|---|
OperationalPlan |
TacticalPlanner.generateOperationalPlan(org.djunits.value.vdouble.scalar.Time startTime,
DirectedPoint locationAtStartTime)
generate an operational plan, for now or for in the future.
|
Copyright © 2014–2016 Delft University of Technology. All rights reserved.