View Javadoc
1   package org.opentrafficsim.road.gtu.lane.tactical.lmrs;
2   
3   import org.opentrafficsim.base.parameters.ParameterException;
4   import org.opentrafficsim.base.parameters.Parameters;
5   import org.opentrafficsim.road.gtu.lane.perception.LanePerception;
6   import org.opentrafficsim.road.gtu.lane.tactical.following.CarFollowingModel;
7   import org.opentrafficsim.road.gtu.lane.tactical.util.lmrs.Desire;
8   import org.opentrafficsim.road.gtu.lane.tactical.util.lmrs.VoluntaryIncentive;
9   
10  /**
11   * Determines lane change desire for speed, where the slowest vehicle in the current and adjacent lanes are assessed. The larger
12   * the speed differences between these vehicles, the larger the desire. Negative speed differences result in negative lane
13   * change desire. Only vehicles within a limited anticipation range are considered. The considered speed difference with an
14   * adjacent lane is reduced as the slowest leader in the adjacent lane is further ahead. The desire for speed is reduced as
15   * acceleration is larger, preventing over-assertive lane changes as acceleration out of congestion in the adjacent lane has
16   * progressed more.
17   * <p>
18   * Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
19   * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
20   * </p>
21   * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
22   */
23  public class IncentiveSpeed implements VoluntaryIncentive
24  {
25  
26      @Override
27      public final Desire determineDesire(final Parameters parameters, final LanePerception perception,
28              final CarFollowingModel carFollowingModel, final Desire mandatoryDesire, final Desire voluntaryDesire)
29              throws ParameterException
30      {
31          // TODO: SpeedWithCourtesy now uses TrafficPerception, which embeds the courtesy part. How to do this?
32          return new Desire(0, 0);
33      }
34  
35      @Override
36      public final String toString()
37      {
38          return "IncentiveSpeed []";
39      }
40  
41  }