LaneKeepingPolicy.java

  1. package org.opentrafficsim.road.network.lane.changing;

  2. /**
  3.  * Enum to indicate the general lane keeping rules: keep left, keep right, or keep lane. When KEEP_RIGHT or KEEP_LEFT is used,
  4.  * the gap acceptance policy of the GTU indicates when the vehicle will move back to the left or right after overtaking. The GTU
  5.  * could decide to stay in a lane and not go back as well; it is a general policy that asks the collaboration of the GTU driver.
  6.  * <p>
  7.  * Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
  8.  * BSD-style license. See <a href="http://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
  9.  * <p>
  10.  * $LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
  11.  * initial version Sep 13, 2015 <br>
  12.  * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
  13.  */
  14. public enum LaneKeepingPolicy
  15. {
  16.     /** Constant to indicate that the general policy is to keep right. */
  17.     KEEPRIGHT,

  18.     /** Constant to indicate that the general policy is to keep left. */
  19.     KEEPLEFT,

  20.     /** Constant to indicate that the general policy is to keep lane. */
  21.     KEEPLANE;
  22. }