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-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
19   * BSD-style license. See <a href="http://opentrafficsim.org/docs/current/license.html">OpenTrafficSim License</a>.
20   * <p>
21   * @version $Revision$, $LastChangedDate$, by $Author$, initial version Apr 13, 2016 <br>
22   * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
23   */
24  public class IncentiveSpeed implements VoluntaryIncentive
25  {
26  
27      /** {@inheritDoc} */
28      @Override
29      public final Desire determineDesire(final Parameters parameters, final LanePerception perception,
30              final CarFollowingModel carFollowingModel, final Desire mandatoryDesire, final Desire voluntaryDesire)
31              throws ParameterException
32      {
33          // TODO: SpeedWithCourtesy now uses TrafficPerception, which embeds the courtesy part. How to do this?
34          return new Desire(0, 0);
35      }
36  
37      /** {@inheritDoc} */
38      @Override
39      public final String toString()
40      {
41          return "IncentiveSpeed []";
42      }
43  
44  }