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 out of hierarchal courtesy. For right-hand driving this is towards the right if the follower has a  
8    * higher desired velocity. If the left follower has a higher desired velocity, a negative desire towards the left 
9    * exists. For left-hand driving it is the other way around. Hierarchal desire depends on the level of hierarchal 
10   * courtesy. 
11   * @author Wouter Schakel
12   */
13  public class IncentiveHierarchal implements VoluntaryIncentive {
14  
15  	/** {@inheritDoc} */
16  	@Override
17  	public Desire determineDesire(final LaneBasedGTU gtu, final LanePerception perception, Desire mandatory) {
18  		return new Desire(0, 0);
19  	}
20  
21  }