Enum Class TorqueMode

java.lang.Object
java.lang.Enum<TorqueMode>
org.texastorque.torquelib.base.TorqueMode
All Implemented Interfaces:
Serializable, Comparable<TorqueMode>, Constable

public enum TorqueMode extends Enum<TorqueMode>
An enum to describe the state of the robot.
  • Enum Constant Details

  • Method Details

    • values

      public static TorqueMode[] 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 TorqueMode 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
    • isCompetition

      public final boolean isCompetition()
    • isDisabled

      public final boolean isDisabled()
    • isTeleop

      public final boolean isTeleop()
    • isAuto

      public final boolean isAuto()
    • onAuto

      public final void onAuto(Runnable r)
    • onTeleop

      public final void onTeleop(Runnable r)
    • onCompetition

      public final void onCompetition(Runnable r)
    • onDisabled

      public final void onDisabled(Runnable r)