Class AlertDataJNI
java.lang.Object
org.wpilib.hardware.hal.JNIWrapper
org.wpilib.hardware.hal.simulation.AlertDataJNI
JNI for alert data.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class JNIWrapper
JNIWrapper.Helper -
Method Summary
Modifier and TypeMethodDescriptionstatic AlertDataJNI.AlertInfo[]Gets detailed information about each alert.static intGets the number of alerts.static voidResets all alert simulation data.Methods inherited from class JNIWrapper
forceLoad, suppressUnused
-
Method Details
-
getNumAlerts
Gets the number of alerts. Note: this is not guaranteed to be consistent with the number of alerts returned by getAlerts, so the latter's return value should be used to determine how many alerts were actually filled in.- Returns:
- the number of alerts
-
getAlerts
Gets detailed information about each alert.- Returns:
- Array of information about each alert
-
resetData
Resets all alert simulation data.
-