Package swervelib.telemetry
Class Alert
java.lang.Object
swervelib.telemetry.Alert
Thread-safe psuedo-Alert class
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringGroup of the alertfinal Alert.AlertTypeType of the alert -
Constructor Summary
ConstructorsConstructorDescriptionAlert(String text, Alert.AlertType type) Create a new AlertAlert(String group, String text, Alert.AlertType type) Create a new Alert -
Method Summary
-
Field Details
-
group
Group of the alert -
type
Type of the alert
-
-
Constructor Details
-
Alert
Create a new Alert- Parameters:
group- Group of the alerttext- Text of the alerttype- Type of the alert
-
Alert
Create a new Alert- Parameters:
text- Text of the alerttype- Type of the alert
-
-
Method Details
-
set
public void set(boolean toggle) Toggle the alert- Parameters:
toggle-
-
setText
Set the text of the alert- Parameters:
text- Text of the alert
-
close
public void close()
-