View Javadoc
1   package org.opentrafficsim.road.network.lane.changing;
2   
3   /**
4    * Enum to indicate the general lane keeping rules: keep left, keep right, or keep lane. When KEEP_RIGHT or KEEP_LEFT is used,
5    * the gap acceptance policy of the GTU indicates when the vehicle will move back to the left or right after overtaking. The GTU
6    * 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.
7    * <p>
8    * Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
9    * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
10   * </p>
11   * @author <a href="https://github.com/averbraeck">Alexander Verbraeck</a>
12   */
13  public enum LaneKeepingPolicy
14  {
15      /** Constant to indicate that the general policy is to keep right. */
16      KEEPRIGHT,
17  
18      /** Constant to indicate that the general policy is to keep left. */
19      KEEPLEFT,
20  
21      /** Constant to indicate that the general policy is to keep lane. */
22      KEEPLANE;
23  }