Class AbstractLaneBasedTacticalPlanner
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.AbstractLaneBasedTacticalPlanner
- All Implemented Interfaces:
TacticalPlanner<LaneBasedGtu,,LanePerception> LaneBasedTacticalPlanner
- Direct Known Subclasses:
AbstractIncentivesTacticalPlanner
public abstract class AbstractLaneBasedTacticalPlanner
extends Object
implements LaneBasedTacticalPlanner
A lane-based tactical planner generates an operational plan for the lane-based GTU. It can ask the strategic planner for
assistance on the route to take when the network splits. This abstract class contains a number of helper methods that make it
easy to implement a tactical planner.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final ParameterTypeDurationTime step parameter type.static final ParameterTypeClass<LaneBasedTacticalPlanner>Tactical planner parameter.protected static final ParameterTypeLengthLook ahead parameter type.Fields inherited from interface org.opentrafficsim.core.gtu.plan.tactical.TacticalPlanner
TACTICAL_PLANNER -
Constructor Summary
ConstructorsConstructorDescriptionAbstractLaneBasedTacticalPlanner(CarFollowingModel carFollowingModel, LaneBasedGtu gtu, LanePerception lanePerception) Instantiates a tactical planner. -
Method Summary
Modifier and TypeMethodDescriptionfinal CarFollowingModelReturns the car-following model.final LaneBasedGtugetGtu()final LanePerceptionfinal voidsetCarFollowingModel(CarFollowingModel carFollowingModel) Sets the car-following model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opentrafficsim.road.gtu.lane.tactical.LaneBasedTacticalPlanner
chooseLaneAtSplitMethods inherited from interface org.opentrafficsim.core.gtu.plan.tactical.TacticalPlanner
generateOperationalPlan
-
Field Details
-
LANE_TACTICAL_PLANNER
Tactical planner parameter. -
LOOKAHEAD
Look ahead parameter type. -
DT
Time step parameter type.
-
-
Constructor Details
-
AbstractLaneBasedTacticalPlanner
public AbstractLaneBasedTacticalPlanner(CarFollowingModel carFollowingModel, LaneBasedGtu gtu, LanePerception lanePerception) Instantiates a tactical planner.- Parameters:
carFollowingModel- car-following modelgtu- GTUlanePerception- perception
-
-
Method Details
-
getGtu
- Specified by:
getGtuin interfaceTacticalPlanner<LaneBasedGtu,LanePerception>
-
getCarFollowingModel
Description copied from interface:LaneBasedTacticalPlannerReturns the car-following model.- Specified by:
getCarFollowingModelin interfaceLaneBasedTacticalPlanner- Returns:
- car following model
-
setCarFollowingModel
Sets the car-following model.- Parameters:
carFollowingModel- Car-following model to set.
-
getPerception
- Specified by:
getPerceptionin interfaceTacticalPlanner<LaneBasedGtu,LanePerception>
-