Interface RemoteConnectorState
-
- All Known Implementing Classes:
AwaitingBootstrapState,BaseMessageProcessingState,BootstrapInProgressState,ConnectionReadyState,JoinMessageArrivedState,NoOperationInitialState,PairingAuthFailedState,PairingAuthSuccessState,SendPairingMessageState,SerialAwaitFirstMsgState,SocketAwaitJoinState,StreamNotConnectedState
public interface RemoteConnectorState
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanSendCommandToRemote(MenuCommand command)called before any command is sent in order for the state to disallowvoidenterState()called when a state machine class becomes activevoidexitState(RemoteConnectorState nextState)called when a state machine class is deactivatedAuthStatusgetAuthenticationStatus()
-
-
-
Method Detail
-
enterState
void enterState()
called when a state machine class becomes active
-
exitState
void exitState(RemoteConnectorState nextState)
called when a state machine class is deactivated
-
getAuthenticationStatus
AuthStatus getAuthenticationStatus()
- Returns:
- the current authentication status as determined by the state.
-
canSendCommandToRemote
boolean canSendCommandToRemote(MenuCommand command)
called before any command is sent in order for the state to disallow- Parameters:
command- the command to check- Returns:
- true to send, false to suppress.
-
-