Class AlertableCollection.MultiAlertInfo
java.lang.Object
com.ctre.phoenix6.alerts.AlertableCollection.MultiAlertInfo
- Enclosing class:
AlertableCollection
Information about a multi-level alert.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanWhether the multi-level alert is active.final PhoenixAlert.LevelThe new alert urgency level.final StringThe new text to report in the alert, or null to leave the text unchanged. -
Method Summary
Modifier and TypeMethodDescriptionactive(PhoenixAlert.Level level) Creates new information for an active multi-level alert without changing the alert text.active(PhoenixAlert.Level level, String text) Creates new information for an active multi-level alert.inactive()Gets information for an inactive multi-level alert.
-
Field Details
-
isActive
public final boolean isActiveWhether the multi-level alert is active. -
level
The new alert urgency level. -
text
The new text to report in the alert, or null to leave the text unchanged.
-
-
Method Details
-
inactive
Gets information for an inactive multi-level alert.- Returns:
- Information for an inactive multi-level alert
-
active
Creates new information for an active multi-level alert without changing the alert text.- Parameters:
level- New alert urgency level- Returns:
- Information for an active multi-level alert without changing the alert text
-
active
Creates new information for an active multi-level alert.- Parameters:
level- New alert urgency leveltext- New text to report in the alert, or null to leave the text unchanged- Returns:
- Information for an active multi-level alert
-