public interface LaneBasedTacticalPlanner extends TacticalPlanner<LaneBasedGTU,LanePerception>
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
TACTICAL_PLANNER
Modifier and Type | Method and Description |
---|---|
default LaneDirection |
chooseLaneAtSplit(LaneDirection from,
Set<LaneDirection> lanes)
Selects a lane from a possible set.
|
CarFollowingModel |
getCarFollowingModel()
Returns the car-following model.
|
static LaneDirection |
mostOnSide(LaneDirection lane1,
LaneDirection lane2,
LateralDirectionality lat)
Returns the right-most of two lanes.
|
default Length |
okDistance(LaneDirection lane,
Length distance,
Route route,
Length maxDistance)
Helper method for default chooseLaneAtSplit implementation that returns the distance from this lane onwards where the
route can be followed.
|
generateOperationalPlan, getGtu, getPerception
CarFollowingModel getCarFollowingModel()
default LaneDirection chooseLaneAtSplit(LaneDirection from, Set<LaneDirection> lanes) throws ParameterException
from
- LaneDirection; lane we come fromlanes
- Set<LaneDirection>; set of lane directions possibleParameterException
- in case of a missing parameterdefault Length okDistance(LaneDirection lane, Length distance, Route route, Length maxDistance)
lane
- LaneDirection; lane and directiondistance
- Length; distance so farroute
- Route; routemaxDistance
- Length; max search distancestatic LaneDirection mostOnSide(LaneDirection lane1, LaneDirection lane2, LateralDirectionality lat)
lane1
- LaneDirection; lane 1lane2
- LaneDirection; lane 2lat
- LateralDirectionality; lateral sideCopyright © 2014–2019 Delft University of Technology. All rights reserved.