View Javadoc
1   package org.opentrafficsim.road.gtu.lane.tactical.lmrs;
2   
3   import org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics;
4   import org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException;
5   import org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException;
6   import org.opentrafficsim.road.gtu.lane.perception.LanePerception;
7   import org.opentrafficsim.road.gtu.lane.tactical.following.CarFollowingModel;
8   import org.opentrafficsim.road.gtu.lane.tactical.util.lmrs.Desire;
9   import org.opentrafficsim.road.gtu.lane.tactical.util.lmrs.VoluntaryIncentive;
10  
11  /**
12   * Determines desire out of hierarchal courtesy. For right-hand driving this is towards the right if the follower has a higher
13   * desired speed. If the left follower has a higher desired speed, a negative desire towards the left exists. For left-hand
14   * driving it is the other way around. Hierarchal desire depends on the level of hierarchal courtesy.
15   * <p>
16   * Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
17   * BSD-style license. See <a href="http://opentrafficsim.org/docs/current/license.html">OpenTrafficSim License</a>.
18   * <p>
19   * @version $Revision$, $LastChangedDate$, by $Author$, initial version Apr 13, 2016 <br>
20   * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
21   */
22  public class IncentiveHierarchal implements VoluntaryIncentive
23  {
24  
25      /** {@inheritDoc} */
26      @Override
27      public final Desire determineDesire(final BehavioralCharacteristics behavioralCharacteristics,
28          final LanePerception perception, final CarFollowingModel carFollowingModel, final Desire mandatoryDesire,
29          final Desire voluntaryDesire) throws ParameterException, OperationalPlanException
30      {
31          return new Desire(0, 0); // XXXXX STUB
32      }
33  
34      /** {@inheritDoc} */
35      @Override
36      public final String toString()
37      {
38          return "IncentiveHierarchal";
39      }
40  
41  }