RobotCore
1.0
WPILib port to raspberry Pi
Toggle main menu visibility
Loading...
Searching...
No Matches
MatchState.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.driverstation;
6
7
import
java.util.Optional;
8
import
java.util.OptionalInt;
9
import
org.wpilib.driverstation.internal.DriverStationBackend;
10
12
public
final
class
MatchState {
13
private
MatchState() {}
14
32
public
static
double
getMatchTime
() {
33
return
DriverStationBackend
.
getMatchTime
();
34
}
35
43
public
static
Optional<Alliance>
getAlliance
() {
44
return
DriverStationBackend
.
getAlliance
();
45
}
46
54
public
static
OptionalInt
getLocation
() {
55
return
DriverStationBackend
.
getLocation
();
56
}
57
63
public
static
int
getReplayNumber
() {
64
return
DriverStationBackend
.
getReplayNumber
();
65
}
66
72
public
static
int
getMatchNumber
() {
73
return
DriverStationBackend
.
getMatchNumber
();
74
}
75
81
public
static
MatchType
getMatchType
() {
82
return
DriverStationBackend
.
getMatchType
();
83
}
84
90
public
static
String
getEventName
() {
91
return
DriverStationBackend
.
getEventName
();
92
}
93
101
public
static
Optional<String>
getGameData
() {
102
return
DriverStationBackend
.
getGameData
();
103
}
104
}
org.wpilib.driverstation.MatchState.getMatchNumber
static int getMatchNumber()
Definition
MatchState.java:72
org.wpilib.driverstation.MatchState.getMatchType
static MatchType getMatchType()
Definition
MatchState.java:81
org.wpilib.driverstation.MatchState.getEventName
static String getEventName()
Definition
MatchState.java:90
org.wpilib.driverstation.MatchState.getAlliance
static Optional< Alliance > getAlliance()
Definition
MatchState.java:43
org.wpilib.driverstation.MatchState.getLocation
static OptionalInt getLocation()
Definition
MatchState.java:54
org.wpilib.driverstation.MatchState.getMatchTime
static double getMatchTime()
Definition
MatchState.java:32
org.wpilib.driverstation.MatchState.getGameData
static Optional< String > getGameData()
Definition
MatchState.java:101
org.wpilib.driverstation.MatchState.getReplayNumber
static int getReplayNumber()
Definition
MatchState.java:63
org.wpilib.driverstation.internal.DriverStationBackend
Definition
DriverStationBackend.java:50
org.wpilib.driverstation.internal.DriverStationBackend.getMatchTime
static double getMatchTime()
Definition
DriverStationBackend.java:1997
org.wpilib.driverstation.internal.DriverStationBackend.getMatchType
static MatchType getMatchType()
Definition
DriverStationBackend.java:1872
org.wpilib.driverstation.internal.DriverStationBackend.getLocation
static OptionalInt getLocation()
Definition
DriverStationBackend.java:1959
org.wpilib.driverstation.internal.DriverStationBackend.getMatchNumber
static int getMatchNumber()
Definition
DriverStationBackend.java:1893
org.wpilib.driverstation.internal.DriverStationBackend.getEventName
static String getEventName()
Definition
DriverStationBackend.java:1858
org.wpilib.driverstation.internal.DriverStationBackend.getReplayNumber
static int getReplayNumber()
Definition
DriverStationBackend.java:1907
org.wpilib.driverstation.internal.DriverStationBackend.getAlliance
static Optional< Alliance > getAlliance()
Definition
DriverStationBackend.java:1943
org.wpilib.driverstation.internal.DriverStationBackend.getGameData
static Optional< String > getGameData()
Definition
DriverStationBackend.java:1841
org.wpilib.driverstation.MatchType
Definition
MatchType.java:8
org
wpilib
driverstation
MatchState.java
Generated by
1.18.0