Interface LaneBasedTacticalPlanner

All Superinterfaces:
TacticalPlanner<LaneBasedGTU,​LanePerception>
All Known Implementing Classes:
AbstractIncentivesTacticalPlanner, AbstractLaneBasedTacticalPlanner, LaneBasedCFLCTacticalPlanner, LaneBasedGTUFollowingDirectedChangeTacticalPlanner, LaneBasedGTUFollowingTacticalPlanner, LMRS, SteeringLmrs, Toledo

public interface LaneBasedTacticalPlanner
extends TacticalPlanner<LaneBasedGTU,​LanePerception>

Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version May 27, 2016
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Method Details

    • getCarFollowingModel

      CarFollowingModel getCarFollowingModel()
      Returns the car-following model.
      Returns:
      car following model
    • chooseLaneAtSplit

      default LaneDirection chooseLaneAtSplit​(LaneDirection from, java.util.Set<LaneDirection> lanes) throws ParameterException
      Selects a lane from a possible set. This set contains all viable lanes in to which a lanes splits.
      Parameters:
      from - LaneDirection; lane we come from
      lanes - Set<LaneDirection>; set of lane directions possible
      Returns:
      LaneDirection; preferred lane direction
      Throws:
      ParameterException - in case of a missing parameter
    • okDistance

      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.
      Parameters:
      lane - LaneDirection; lane and direction
      distance - Length; distance so far
      route - Route; route
      maxDistance - Length; max search distance
      Returns:
      Length; distance from this lane onwards where the route can be followed
    • mostOnSide

      static LaneDirection mostOnSide​(LaneDirection lane1, LaneDirection lane2, LateralDirectionality lat)
      Returns the right-most of two lanes.
      Parameters:
      lane1 - LaneDirection; lane 1
      lane2 - LaneDirection; lane 2
      lat - LateralDirectionality; lateral side
      Returns:
      LaneDirection; right-most of two lanes