RobotCore 1.0
WPILib port to raspberry Pi
Loading...
Searching...
No Matches
AlertDataJNI.java
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5package org.wpilib.util;
6
8public class AlertDataJNI extends WPIUtilJNIWrapper {
13 public static final int LEVEL_HIGH = 0;
14
20 public static final int LEVEL_MEDIUM = 1;
21
27 public static final int LEVEL_LOW = 2;
28
30 public static class AlertInfo {
40 public AlertInfo(String group, String id, String text, long activeStartTime, int level) {
41 this.group = group;
42 this.id = id;
43 this.text = text;
44 this.activeStartTime = activeStartTime;
45 this.level = level;
46 }
47
49 public final String group;
50
52 public final String id;
53
55 public final String text;
56
58 public final long activeStartTime; // 0 if not active
59
61 public final int level; // LEVEL_HIGH, LEVEL_MEDIUM, LEVEL_LOW
62 }
63
71 public static native int getNumAlerts();
72
78 public static native AlertInfo[] getAlerts();
79
81 public static native void resetData();
82
84 private AlertDataJNI() {}
85}
static native void resetData()
static native int getNumAlerts()
static native AlertInfo[] getAlerts()