Enum Class ArithmeticOperator

java.lang.Object
java.lang.Enum<ArithmeticOperator>
fr.uga.pddl4j.problem.numeric.ArithmeticOperator
All Implemented Interfaces:
Serializable, Comparable<ArithmeticOperator>, Constable

public enum ArithmeticOperator extends Enum<ArithmeticOperator>
This enum defines the arithmetic operators.
Since:
4.0
  • Enum Constant Details

    • PLUS

      public static final ArithmeticOperator PLUS
      The addition arithmetic operator.
    • MINUS

      public static final ArithmeticOperator MINUS
      The binary subtraction arithmetic operator.
    • UMINUS

      public static final ArithmeticOperator UMINUS
      The unary subtraction arithmetic operator.
    • DIV

      public static final ArithmeticOperator DIV
      The arithmetic operator of division.
    • MUL

      public static final ArithmeticOperator MUL
      The arithmetic operator of multiplication.
  • Method Details

    • values

      public static ArithmeticOperator[] 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 ArithmeticOperator 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
    • getImage

      public String getImage()
      Returns the image of this arithmetic operator.
      Returns:
      the image of this arithmetic operator.