Enum Class TunableConfig.Polling

java.lang.Object
java.lang.Enum<TunableConfig.Polling>
org.wpilib.tunable.TunableConfig.Polling
All Implemented Interfaces:
Serializable, Comparable<TunableConfig.Polling>, Constable
Enclosing class:
TunableConfig

public static enum TunableConfig.Polling extends Enum<TunableConfig.Polling>
Defines when the backend should poll the tunable's local value.
  • Enum Constant Details

    • DEFAULT

      public static final TunableConfig.Polling DEFAULT
      Use the framework default polling behavior.
    • ALWAYS_GET

      public static final TunableConfig.Polling ALWAYS_GET
      Poll the tunable's local value on every loop.
    • GET_ON_CHANGE

      public static final TunableConfig.Polling GET_ON_CHANGE
      Poll the tunable's local value only when it is marked changed.
  • Method Details

    • values

      public static TunableConfig.Polling[] 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 TunableConfig.Polling 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