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 courtesy lane changes, which are performed to supply space for other drivers. In
8    * case drivers in adjacent lanes have desire to change to the current lane, the driver has desire to change to the 
9    * other adjacent lane. The level of desire depends on lane change courtesy, as well as the distance of the leading
10   * vehicle for which desire exists. This desire exists for only a single vehicle, i.e. the one giving maximum desire. A
11   * negative desire may also result for leaders in the 2nd adjacent lane desiring to change to the 1st adjacent lane. By 
12   * not changing to the 1st adjacent lane, room is reserved for the leader on the 2nd adjacent lane. 
13   * @author Wouter Schakel
14   */
15  public class IncentiveCourtesy implements VoluntaryIncentive {
16  
17  	/** {@inheritDoc} */
18  	@Override
19  	public Desire determineDesire(final LaneBasedGTU gtu, final LanePerception perception, Desire mandatory) {
20  		return new Desire(0, 0);
21  	}
22  
23  }