View Javadoc
1   package org.opentrafficsim.road.gtu.lane.tactical.lmrs;
2   
3   import org.opentrafficsim.road.gtu.lane.LaneBasedGTU;
4   import org.opentrafficsim.road.gtu.lane.perception.LanePerception;
5   
6   /**
7    * Determines lane change desire for speed. The anticipation speed in the current and adjacent lanes are compared. The 
8    * larger the difference, the larger the lane change desire. For negative differences, negative desire results. 
9    * Anticipation speed involves the the most critical vehicle considered to be in a lane. Vehicles are more critical if 
10   * their speed is lower, and if they are closer. The set of vehicles considered to be on a lane includes drivers on
11   * adjacent lanes of the considered lane, with a lane change desire towards the considered lane above a certain
12   * certain threshold. If such vehicles have low speeds (i.e. vehicle accelerating to merge), this may result in a
13   * courtesy lane change, or in not changing lane out of courtesy from the 2nd lane of the mainline. Vehicle on the 
14   * current lane of the driver, are not considered on adjacent lanes. This would maintain a large speed difference 
15   * between the lanes where all drivers do not change lane as they consider leading vehicles to be on the adjacent lane, 
16   * lowering the anticipation speed on the adjacent lane. The desire for speed is reduced as acceleration is larger,
17   * preventing over-assertive lane changes as acceleration out of congestion in the adjacent lane has progressed more.<br>
18   * <br>
19   * <b>Note:</b> This incentive includes speed, and a form of courtesy. It should therefore not be combined with 
20   * incentives solely for speed, or solely for courtesy.
21   * @author Wouter Schakel
22   */
23  public class IncentiveSpeedWithCourtesy implements VoluntaryIncentive {
24  
25  	/** {@inheritDoc} */
26  	@Override
27  	public Desire determineDesire(final LaneBasedGTU gtu, final LanePerception perception, Desire mandatory) {
28  		return new Desire(0, 0);
29  	}
30  
31  }