public final class FmsInfo extends edu.wpi.first.shuffleboard.api.data.ComplexData<FmsInfo>
Constructor and Description |
---|
FmsInfo(java.util.Map<java.lang.String,java.lang.Object> map)
Creates a new FMS info object from a map.
|
FmsInfo(java.lang.String gameSpecificMessage,
java.lang.String eventName,
int matchNumber,
int replayNumber,
MatchType matchType,
Alliance alliance,
int stationNumber,
ControlWord fmsControlData)
Creates a new FMS info object.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
asMap() |
Alliance |
getAlliance()
Gets the alliance color.
|
java.lang.String |
getEventName()
Gets the name of the event.
|
ControlWord |
getFmsControlData()
Gets the control information.
|
java.lang.String |
getGameSpecificMessage()
Gets the game-specific message from the FMS.
|
int |
getMatchNumber()
Gets the number of the match being played.
|
MatchType |
getMatchType()
Gets the type of the match being played.
|
int |
getReplayNumber()
Gets the replay number of the match.
|
int |
getStationNumber()
Gets the station number.
|
public FmsInfo(java.lang.String gameSpecificMessage, java.lang.String eventName, int matchNumber, int replayNumber, MatchType matchType, Alliance alliance, int stationNumber, ControlWord fmsControlData)
gameSpecificMessage
- the game-specific message sent by the FMSeventName
- the name of the event being played atmatchNumber
- the match number being playedreplayNumber
- the number of the replay, or 0 if no replay is being playedmatchType
- the type of the match being playedalliance
- the alliance the robot is onstationNumber
- the station number for this teamfmsControlData
- miscellaneous FMS control datapublic FmsInfo(java.util.Map<java.lang.String,java.lang.Object> map)
public java.util.Map<java.lang.String,java.lang.Object> asMap()
asMap
in class edu.wpi.first.shuffleboard.api.data.ComplexData<FmsInfo>
public java.lang.String getGameSpecificMessage()
public java.lang.String getEventName()
public int getMatchNumber()
public int getReplayNumber()
public MatchType getMatchType()
public Alliance getAlliance()
public int getStationNumber()
public ControlWord getFmsControlData()