Class Alert

java.lang.Object
swervelib.telemetry.Alert

public class Alert extends Object
Thread-safe psuedo-Alert class
  • Field Details

    • group

      public final String group
      Group of the alert
    • type

      public final Alert.AlertType type
      Type of the alert
  • Constructor Details

    • Alert

      public Alert(String group, String text, Alert.AlertType type)
      Create a new Alert
      Parameters:
      group - Group of the alert
      text - Text of the alert
      type - Type of the alert
    • Alert

      public Alert(String text, Alert.AlertType type)
      Create a new Alert
      Parameters:
      text - Text of the alert
      type - Type of the alert
  • Method Details

    • set

      public void set(boolean toggle)
      Toggle the alert
      Parameters:
      toggle -
    • setText

      public void setText(String text)
      Set the text of the alert
      Parameters:
      text - Text of the alert
    • close

      public void close()