ArcDirectionType.java

  1. package org.opentrafficsim.xml.bindings.types;

  2. import org.opentrafficsim.xml.bindings.types.ArcDirectionType.ArcDirection;

  3. /**
  4.  * Expression type with ArcDirection value.
  5.  * <p>
  6.  * Copyright (c) 2023-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
  7.  * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
  8.  * </p>
  9.  * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
  10.  */
  11. public class ArcDirectionType extends ExpressionType<ArcDirection>
  12. {

  13.     /**
  14.      * Constructor with value.
  15.      * @param value ArcDirection; value, may be {@code null}.
  16.      */
  17.     public ArcDirectionType(final ArcDirection value)
  18.     {
  19.         super(value);
  20.     }

  21.     /**
  22.      * Constructor with expression.
  23.      * @param expression String; expression.
  24.      */
  25.     public ArcDirectionType(final String expression)
  26.     {
  27.         super(expression);
  28.     }
  29.    
  30.     /**
  31.      * Direction of the arc; LEFT or RIGHT.
  32.      * <p>
  33.      * Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
  34.      * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
  35.      * </p>
  36.      * @author <a href="https://github.com/averbraeck" target="_blank">Alexander Verbraeck</a>
  37.      */
  38.     public enum ArcDirection
  39.     {
  40.         /** Left = counter-clockwise. */
  41.         LEFT,
  42.        
  43.         /** Right = clockwise. */
  44.         RIGHT;
  45.     }

  46. }