IncentiveRoute.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 by assessing the number of required lane change to be performed and the distance within which these have to
  6.  * be performed. Desire starts to increase from 0 linearly over a distance of x0 per required lane change, or per v*t0 per
  7.  * required lane change. For v>x0/t0 this gives that remaining time is critical, while for v<x0/t0 remaining space is
  8.  * critical. The desire is set towards the adjacent lane with a better situation. Negative desire towards the other lane, the
  9.  * extent of which pertains to the other adjacent lane, is also set. For tapers there are special considerations as lane changes
  10.  * are possible and favorable to both directions.
  11.  * <p>
  12.  * Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
  13.  * BSD-style license. See <a href="http://opentrafficsim.org/node/13">OpenTrafficSim License</a>.
  14.  * <p>
  15.  * @version $Revision$, $LastChangedDate$, by $Author$, initial version Apr 13, 2016 <br>
  16.  * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
  17.  */
  18. public class IncentiveRoute implements MandatoryIncentive
  19. {

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

  26.     /** {@inheritDoc} */
  27.     @Override
  28.     public final String toString()
  29.     {
  30.         return "IncentiveRoute";
  31.     }

  32. }