Enum Class TrafCod.Token

java.lang.Object
java.lang.Enum<TrafCod.Token>
org.opentrafficsim.trafficcontrol.trafcod.TrafCod.Token
All Implemented Interfaces:
Serializable, Comparable<TrafCod.Token>, Constable
Enclosing class:
TrafCod

static enum TrafCod.Token extends Enum<TrafCod.Token>
Types of TrafCOD tokens.
Author:
Peter Knoppers
  • Enum Constant Details

    • EQUALS_RULE

      public static final TrafCod.Token EQUALS_RULE
      Equals rule.
    • NEG_EQUALS_RULE

      public static final TrafCod.Token NEG_EQUALS_RULE
      Not equals rule.
    • ASSIGNMENT

      public static final TrafCod.Token ASSIGNMENT
      Assignment rule.
    • START_RULE

      public static final TrafCod.Token START_RULE
      Start rule.
    • END_RULE

      public static final TrafCod.Token END_RULE
      End rule.
    • INIT_TIMER

      public static final TrafCod.Token INIT_TIMER
      Timer initialize rule.
    • REINIT_TIMER

      public static final TrafCod.Token REINIT_TIMER
      Timer re-initialize rule.
    • UNARY_MINUS

      public static final TrafCod.Token UNARY_MINUS
      Unary minus operator.
    • LEEQ

      public static final TrafCod.Token LEEQ
      Less than or equal to (<=).
    • NOTEQ

      public static final TrafCod.Token NOTEQ
      Not equal to (!=).
    • LE

      public static final TrafCod.Token LE
      Less than (<).
    • GTEQ

      public static final TrafCod.Token GTEQ
      Greater than or equal to (>=).
    • GT

      public static final TrafCod.Token GT
      Greater than (>).
    • EQ

      public static final TrafCod.Token EQ
      Equals to (=).
    • START

      public static final TrafCod.Token START
      True if following variable has just started.
    • END

      public static final TrafCod.Token END
      True if following variable has just ended.
    • VARIABLE

      public static final TrafCod.Token VARIABLE
      Variable follows.
    • NEG_VARIABLE

      public static final TrafCod.Token NEG_VARIABLE
      Variable that follows must be logically negated.
    • CONSTANT

      public static final TrafCod.Token CONSTANT
      Integer follows.
    • PLUS

      public static final TrafCod.Token PLUS
      Addition operator.
    • MINUS

      public static final TrafCod.Token MINUS
      Subtraction operator.
    • TIMES

      public static final TrafCod.Token TIMES
      Multiplication operator.
    • OPEN_PAREN

      public static final TrafCod.Token OPEN_PAREN
      Opening parenthesis.
    • CLOSE_PAREN

      public static final TrafCod.Token CLOSE_PAREN
      Closing parenthesis.
  • Method Details

    • values

      public static TrafCod.Token[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TrafCod.Token valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null