Class AlertDataJNI
java.lang.Object
org.wpilib.util.WPIUtilJNIWrapper
org.wpilib.util.AlertDataJNI
JNI for alert data.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class WPIUtilJNIWrapper
WPIUtilJNIWrapper.Helper -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intHigh priority alert - displayed first with a red "X" symbol.static final intLow priority alert - displayed last with a green "i" symbol.static final intMedium priority alert - displayed second with a yellow "!" symbol. -
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 WPIUtilJNIWrapper
forceLoad, suppressUnused
-
Field Details
-
LEVEL_HIGH
public static final int LEVEL_HIGHHigh priority alert - displayed first with a red "X" symbol. Use this type for problems which will seriously affect the robot's functionality and thus require immediate attention.- See Also:
-
LEVEL_MEDIUM
public static final int LEVEL_MEDIUMMedium priority alert - displayed second with a yellow "!" symbol. Use this type for problems which could affect the robot's functionality but do not necessarily require immediate attention.- See Also:
-
LEVEL_LOW
public static final int LEVEL_LOWLow priority alert - displayed last with a green "i" symbol. Use this type for problems which are unlikely to affect the robot's functionality, or any other alerts which do not fall under the other categories.- See Also:
-
-
Method Details
-
getNumAlerts
public static int 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
public static void resetData()Resets all alert simulation data.
-