Enum Class ExpressionType

java.lang.Object
java.lang.Enum<ExpressionType>
org.wpilib.math.autodiff.ExpressionType
All Implemented Interfaces:
Serializable, Comparable<ExpressionType>, Constable

public enum ExpressionType extends Enum<ExpressionType>
Expression type.

Used for autodiff caching.

  • Enum Constant Details

    • NONE

      public static final ExpressionType NONE
      There is no expression.
    • CONSTANT

      public static final ExpressionType CONSTANT
      The expression is a constant.
    • LINEAR

      public static final ExpressionType LINEAR
      The expression is composed of linear and lower-order operators.
    • QUADRATIC

      public static final ExpressionType QUADRATIC
      The expression is composed of quadratic and lower-order operators.
    • NONLINEAR

      public static final ExpressionType NONLINEAR
      The expression is composed of nonlinear and lower-order operators.
  • Field Details

    • value

      public final int value
      ExpressionType value.
  • Method Details

    • values

      public static ExpressionType[] 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 ExpressionType 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
    • fromInt

      public static ExpressionType fromInt(int x)
      Converts integer to its corresponding enum value.
      Parameters:
      x - The integer.
      Returns:
      The enum value.