tcMenuJavaAPI
Public Member Functions | List of all members
com.thecoderscorner.menu.remote.states.RemoteConnectorState Interface Reference
Inheritance diagram for com.thecoderscorner.menu.remote.states.RemoteConnectorState:
com.thecoderscorner.menu.remote.states.BaseMessageProcessingState com.thecoderscorner.menu.remote.states.ConnectionHasFailedState com.thecoderscorner.menu.remote.states.NoOperationInitialState com.thecoderscorner.menu.remote.states.PairingAuthFailedState com.thecoderscorner.menu.remote.states.PairingAuthSuccessState com.thecoderscorner.menu.remote.states.StreamNotConnectedState com.thecoderscorner.menu.remote.states.AwaitingBootstrapState com.thecoderscorner.menu.remote.states.BootstrapInProgressState com.thecoderscorner.menu.remote.states.ConnectionReadyState com.thecoderscorner.menu.remote.states.JoinMessageArrivedState com.thecoderscorner.menu.remote.states.SendPairingMessageState com.thecoderscorner.menu.remote.states.SerialAwaitFirstMsgState com.thecoderscorner.menu.remote.states.SocketAwaitJoinState

Public Member Functions

void enterState ()
 
void exitState (RemoteConnectorState nextState)
 
AuthStatus getAuthenticationStatus ()
 
boolean canSendCommandToRemote (MenuCommand command)
 
void runLoop () throws Exception
 

Member Function Documentation

◆ canSendCommandToRemote()

boolean com.thecoderscorner.menu.remote.states.RemoteConnectorState.canSendCommandToRemote ( MenuCommand  command)

◆ enterState()

void com.thecoderscorner.menu.remote.states.RemoteConnectorState.enterState ( )

◆ exitState()

void com.thecoderscorner.menu.remote.states.RemoteConnectorState.exitState ( RemoteConnectorState  nextState)

◆ getAuthenticationStatus()

AuthStatus com.thecoderscorner.menu.remote.states.RemoteConnectorState.getAuthenticationStatus ( )

◆ runLoop()

void com.thecoderscorner.menu.remote.states.RemoteConnectorState.runLoop ( ) throws Exception

called when a state is the current state, the state can read messages and attempt connections in this loop. It must be returned once the state is exited to avoid deadlocking the API. Exceptions can be thrown by the loop safely and will be logged in the connection logic.

Implemented in com.thecoderscorner.menu.remote.states.StreamNotConnectedState, com.thecoderscorner.menu.remote.states.PairingAuthSuccessState, com.thecoderscorner.menu.remote.states.PairingAuthFailedState, com.thecoderscorner.menu.remote.states.NoOperationInitialState, com.thecoderscorner.menu.remote.states.ConnectionHasFailedState, and com.thecoderscorner.menu.remote.states.BaseMessageProcessingState.


The documentation for this interface was generated from the following file: