Class AlertSim.AlertInfo
java.lang.Object
org.wpilib.simulation.AlertSim.AlertInfo
- Enclosing class:
AlertSim
Information about an alert.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal longThe time the alert became active.final StringThe group of the alert.final StringThe alert identifier.final Alert.LevelThe level of the alert (HIGH, MEDIUM, or LOW).final StringThe text of the alert. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisActive()Returns whether the alert is currently active.
-
Field Details
-
group
The group of the alert. -
id
The alert identifier. -
text
The text of the alert. -
activeStartTime
public final long activeStartTimeThe time the alert became active. 0 if not active. -
level
The level of the alert (HIGH, MEDIUM, or LOW).
-
-
Method Details
-
isActive
public boolean isActive()Returns whether the alert is currently active.- Returns:
- true if the alert is active, false otherwise
-