RobotCore
1.0
WPILib port to raspberry Pi
Toggle main menu visibility
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
5
package
org.wpilib.util;
6
8
public
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
}
org.wpilib.util.AlertDataJNI.resetData
static native void resetData()
org.wpilib.util.AlertDataJNI.LEVEL_LOW
static final int LEVEL_LOW
Definition
AlertDataJNI.java:27
org.wpilib.util.AlertDataJNI.getNumAlerts
static native int getNumAlerts()
org.wpilib.util.AlertDataJNI.LEVEL_HIGH
static final int LEVEL_HIGH
Definition
AlertDataJNI.java:13
org.wpilib.util.AlertDataJNI.getAlerts
static native AlertInfo[] getAlerts()
org.wpilib.util.AlertDataJNI.LEVEL_MEDIUM
static final int LEVEL_MEDIUM
Definition
AlertDataJNI.java:20
org.wpilib.util.WPIUtilJNIWrapper
Definition
WPIUtilJNIWrapper.java:14
org
wpilib
util
AlertDataJNI.java
Generated by
1.18.0