Interface AccelerationIncentive

All Known Implementing Classes:
AccelerationBusStop, AccelerationConflicts, AccelerationNoRightOvertake, AccelerationSpeedLimitTransition, AccelerationTrafficLights

public interface AccelerationIncentive

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
  • Method Details

    • accelerate

      void accelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, org.djunits.value.vdouble.scalar.Length mergeDistance, LaneBasedGtu gtu, LanePerception perception, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo speedLimitInfo) throws OperationalPlanException, org.opentrafficsim.base.parameters.ParameterException, GtuException
      Determine acceleration.
      Parameters:
      simplePlan - SimpleOperationalPlan; simple plan to set the acceleration
      lane - RelativeLane; lane on which to consider the acceleration
      mergeDistance - Length; distance over which a lane change is impossible
      gtu - LaneBasedGtu; gtu
      perception - LanePerception; perception
      carFollowingModel - CarFollowingModel; car-following model
      speed - Speed; current speed
      params - Parameters; parameters
      speedLimitInfo - SpeedLimitInfo; speed limit info
      Throws:
      OperationalPlanException - in case of an error
      org.opentrafficsim.base.parameters.ParameterException - on missing parameter
      GtuException - when there is a problem with the state of the GTU when planning a path
    • onRoute

      default <T extends HeadwayLaneBasedObject> Iterable<T> onRoute(Iterable<T> iterable, LaneBasedGtu gtu)
      Returns an iterable with only those lane-based objects that are on the route, accounting for longitudinal direction of the GTU type.
      Type Parameters:
      T - type of lane-based object
      Parameters:
      iterable - Iterable<T>; iterable
      gtu - LaneBasedGtu; gtu
      Returns:
      Iterable<T>; iterable with only those lane-based objects that are on the route