Interface LaneBasedTacticalPlanner
- All Superinterfaces:
TacticalPlanner<LaneBasedGtu,
LanePerception>
- All Known Implementing Classes:
AbstractIncentivesTacticalPlanner
,AbstractLaneBasedTacticalPlanner
,LaneBasedCfLcTacticalPlanner
,LaneBasedGtuFollowingTacticalPlanner
,Lmrs
,Toledo
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, Wouter Schakel
-
Field Summary
Fields inherited from interface org.opentrafficsim.core.gtu.plan.tactical.TacticalPlanner
TACTICAL_PLANNER
-
Method Summary
Modifier and TypeMethodDescriptiondefault Lane
chooseLaneAtSplit
(Lane from, Set<Lane> lanes) Selects a lane from a possible set.Returns the car-following model.static Lane
mostOnSide
(Lane lane1, Lane lane2, LateralDirectionality lat) Returns the right-most of two lanes.default org.djunits.value.vdouble.scalar.Length
okDistance
(Lane lane, org.djunits.value.vdouble.scalar.Length distance, Route route, org.djunits.value.vdouble.scalar.Length maxDistance) Helper method for default chooseLaneAtSplit implementation that returns the distance from this lane onwards where the route can be followed.Methods inherited from interface org.opentrafficsim.core.gtu.plan.tactical.TacticalPlanner
generateOperationalPlan, getGtu, getPerception
-
Method Details
-
getCarFollowingModel
CarFollowingModel getCarFollowingModel()Returns the car-following model.- Returns:
- car following model
-
chooseLaneAtSplit
default Lane chooseLaneAtSplit(Lane from, Set<Lane> lanes) throws org.opentrafficsim.base.parameters.ParameterException Selects a lane from a possible set. This set contains all viable lanes in to which a lanes splits.- Parameters:
from
- Lane; lane we come fromlanes
- Set<Lane>; set of lanes possible- Returns:
- Lane; preferred lane
- Throws:
org.opentrafficsim.base.parameters.ParameterException
- in case of a missing parameter
-
okDistance
default org.djunits.value.vdouble.scalar.Length okDistance(Lane lane, org.djunits.value.vdouble.scalar.Length distance, Route route, org.djunits.value.vdouble.scalar.Length maxDistance) Helper method for default chooseLaneAtSplit implementation that returns the distance from this lane onwards where the route can be followed.- Parameters:
lane
- Lane; lane and directiondistance
- Length; distance so farroute
- Route; routemaxDistance
- Length; max search distance- Returns:
- Length; distance from this lane onwards where the route can be followed
-
mostOnSide
Returns the right-most of two lanes.- Parameters:
lane1
- Lane; lane 1lane2
- Lane; lane 2lat
- LateralDirectionality; lateral side- Returns:
- Lane; right-most of two lanes
-