IncentiveHierarchal.java

  1. package org.opentrafficsim.road.gtu.lane.tactical.lmrs;

  2. import org.opentrafficsim.road.gtu.lane.LaneBasedGTU;
  3. import org.opentrafficsim.road.gtu.lane.perception.LanePerception;

  4. /**
  5.  * Determines desire out of hierarchal courtesy. For right-hand driving this is towards the right if the follower has a higher
  6.  * desired velocity. If the left follower has a higher desired velocity, a negative desire towards the left exists. For
  7.  * left-hand driving it is the other way around. Hierarchal desire depends on the level of hierarchal courtesy.
  8.  * <p>
  9.  * Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
  10.  * BSD-style license. See <a href="http://opentrafficsim.org/node/13">OpenTrafficSim License</a>.
  11.  * <p>
  12.  * @version $Revision$, $LastChangedDate$, by $Author$, initial version Apr 13, 2016 <br>
  13.  * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
  14.  */
  15. public class IncentiveHierarchal implements VoluntaryIncentive
  16. {

  17.     /** {@inheritDoc} */
  18.     @Override
  19.     public final Desire determineDesire(final LaneBasedGTU gtu, final LanePerception perception, final Desire mandatory)
  20.     {
  21.         return new Desire(0, 0); // XXXXX STUB
  22.     }

  23.     /** {@inheritDoc} */
  24.     @Override
  25.     public final String toString()
  26.     {
  27.         return "IncentiveHierarchal";
  28.     }

  29. }