OvertakingDirection.java

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

  2. /**
  3.  * The direction in which a GTU is allowed to overtake another GTU, used as a return type for evaluating overtaking conditions.
  4.  * <p>
  5.  * Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
  6.  * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
  7.  * </p>
  8.  * @author <a href="https://github.com/averbraeck">Alexander Verbraeck</a>
  9.  */
  10. public enum OvertakingDirection
  11. {
  12.     /** Left only. */
  13.     LEFT,

  14.     /** Right only. */
  15.     RIGHT,

  16.     /** Left and right are both allowed. */
  17.     BOTH,

  18.     /** Neither left nor right are allowed. */
  19.     NONE;

  20. }