Interface TacticalPlanner<G extends GTU,P extends Perception<G>>
-
- Type Parameters:
G
- GTU typeP
- perception type
public interface TacticalPlanner<G extends GTU,P extends Perception<G>>
Tactical planners generate operational plans that are in line with reaching the goals of the strategical plan. The modeler is totally free how the tactical planners are generated. Usually there is one tactical planner at work, but it is of course possible to have multiple parallel planners that assess the situation and an overarching tactical planner that acts as a tie-breaker. Alternatively, a single tactical planner is activated depending on the situation. Suppose we drive on a multi-lane stretch of road. The tactical planner can use the headway and lane change algorithms to generate the right operational plans (movements). When the GTU nears a crossing, another tactical planner can be activated that takes care of going left, straight or right (based on a consultation of the strategical plan) and for providing a safe passage of the crossing. After the crossing, the standard headway and lane-change tactical planner take over.
The operational plans that the tactical planners generate can have a very different duration. In case of a standard headway and lane change algorithm with a time step of 0.5 seconds, each operational plan can take 0.5 seconds. Alternatively, operational plans can have a very different duration, depending on the situation. When changing lanes, the complete movement to the other lane can be one operational plan. When it is not busy, and the GTU can move for 5 seconds without problems, the operational plan can take 5 seconds. Based on external stimuli (for which the Perception unit of the GTU is responsible), operational plans can always be interrupted.Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Nov 14, 2015
BSD-style license. See OpenTrafficSim License.- Author:
- Alexander Verbraeck, Peter Knoppers
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterTypeClass<TacticalPlanner>
TACTICAL_PLANNER
Parameter type for tactical planner.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OperationalPlan
generateOperationalPlan(Time startTime, DirectedPoint locationAtStartTime)
generate an operational plan, for now or for in the future.G
getGtu()
Returns the GTU.P
getPerception()
-
-
-
Field Detail
-
TACTICAL_PLANNER
static final ParameterTypeClass<TacticalPlanner> TACTICAL_PLANNER
Parameter type for tactical planner.
-
-
Method Detail
-
getGtu
G getGtu()
Returns the GTU.- Returns:
- GTU
-
generateOperationalPlan
OperationalPlan generateOperationalPlan(Time startTime, DirectedPoint locationAtStartTime) throws OperationalPlanException, GTUException, NetworkException, ParameterException
generate an operational plan, for now or for in the future.- Parameters:
startTime
- Time; the time from which the new operational plan has to be operationallocationAtStartTime
- DirectedPoint; the location of the GTU at the start time of the new plan- Returns:
- a new operational plan
- Throws:
OperationalPlanException
- when there is a problem planning a path in the networkGTUException
- when there is a problem with the state of the GTU when planning a pathNetworkException
- when there is a problem with the network on which the GTU is drivingParameterException
- when there is a problem with a parameter
-
getPerception
P getPerception()
- Returns:
- the perception unit belonging to this tactical planner.
-
-