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 desire by assessing the number of required lane change to be performed and the distance within which these
8    * have to be performed. Desire starts to increase from 0 linearly over a distance of x0 per required lane change, or 
9    * per v*t0 per required lane change. For v>x0/t0 this gives that remaining time is critical, while for v<x0/t0 
10   * remaining space is critical. The desire is set towards the adjacent lane with a better situation. Negative desire
11   * towards the other lane, the extent of which pertains to the other adjacent lane, is also set. For tapers there are
12   * special considerations as lane changes are possible and favorable to both directions.
13   * @author Wouter Schakel
14   */
15  public class IncentiveRoute implements MandatoryIncentive {
16  
17  	/** {@inheritDoc} */
18  	@Override
19  	public Desire determineDesire(final LaneBasedGTU gtu, final LanePerception perception) {
20  		return new Desire(0, 0);
21  	}
22  
23  }