Enum Class Alert.Level

java.lang.Object
java.lang.Enum<Alert.Level>
org.wpilib.driverstation.Alert.Level
All Implemented Interfaces:
Serializable, Comparable<Alert.Level>, Constable
Enclosing class:
Alert

public static enum Alert.Level extends Enum<Alert.Level>
Represents an alert's level of urgency.
  • Enum Constant Details

    • HIGH

      public static final Alert.Level HIGH
      High priority alert - displayed first with a red "X" symbol. Use this type for problems which will seriously affect the robot's functionality and thus require immediate attention.
    • MEDIUM

      public static final Alert.Level MEDIUM
      Medium priority alert - displayed second with a yellow "!" symbol. Use this type for problems which could affect the robot's functionality but do not necessarily require immediate attention.
    • LOW

      public static final Alert.Level LOW
      Low priority alert - displayed last with a green "i" symbol. Use this type for problems which are unlikely to affect the robot's functionality, or any other alerts which do not fall under the other categories.
  • Field Details

    • ERROR

      public static final Alert.Level ERROR
      Alternate name for a high priority alert.
    • WARNING

      public static final Alert.Level WARNING
      Alternate name for a medium priority alert.
    • INFO

      public static final Alert.Level INFO
      Alternate name for a low priority alert.
  • Method Details

    • values

      public static Alert.Level[] 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 Alert.Level 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