public interface RobotStateMonitor
RobotStateMonitor
can be registered with the Callback
of UpdateUI
in order to receive notifications when certain event transitions
happen within the robot.Modifier and Type | Method and Description |
---|---|
void |
updateErrorMessage(java.lang.String errorMessage)
Informs the monitor that a critical error occurred in the robot, or clears
any error previously reported.
|
void |
updateNetworkStatus(NetworkStatus networkStatus,
java.lang.String extra)
Informs the monitor of the current status of the network connection.
|
void |
updatePeerStatus(PeerStatus peerStatus)
Informs the monitor of the current status of relationship to the peer application.
|
void |
updateRobotState(RobotState robotState)
Informs the monitor of the current state of the robot.
|
void |
updateRobotStatus(RobotStatus robotStatus)
Informs the monitor of the current status of the robot.
|
void |
updateWarningMessage(java.lang.String warningMessage)
Informs the monitor that a warning has occurred in the robot, or clears
any warning previously reported.
|
void updateRobotState(RobotState robotState)
robotState
- the current state of the robot.void updateRobotStatus(RobotStatus robotStatus)
robotStatus
- the current status of the robotRobotStatus
void updatePeerStatus(PeerStatus peerStatus)
peerStatus
- the relationship of this app to its peerPeerStatus
void updateNetworkStatus(NetworkStatus networkStatus, java.lang.String extra)
networkStatus
- the current status of the network connectionextra
- additional information useful in some statusesvoid updateErrorMessage(java.lang.String errorMessage)
errorMessage
- the error message being reported, or null if the error is being cleared.void updateWarningMessage(java.lang.String warningMessage)
warningMessage
- the warning message being reported, or null if the warning is being cleared.