tcMenuJavaAPI
Public Member Functions | Protected Member Functions | List of all members
com.thecoderscorner.menu.remote.states.SerialAwaitFirstMsgState Class Reference
Inheritance diagram for com.thecoderscorner.menu.remote.states.SerialAwaitFirstMsgState:
com.thecoderscorner.menu.remote.states.BaseMessageProcessingState com.thecoderscorner.menu.remote.states.RemoteConnectorState

Public Member Functions

 SerialAwaitFirstMsgState (RemoteConnectorContext context)
 
AuthStatus getAuthenticationStatus ()
 
boolean canSendCommandToRemote (MenuCommand command)
 
- Public Member Functions inherited from com.thecoderscorner.menu.remote.states.BaseMessageProcessingState
void enterState ()
 
void runLoop ()
 
void exitState (RemoteConnectorState nextState)
 

Protected Member Functions

boolean processMessage (MenuCommand cmd)
 
void processTimeout ()
 
- Protected Member Functions inherited from com.thecoderscorner.menu.remote.states.BaseMessageProcessingState
 BaseMessageProcessingState (RemoteConnectorContext context)
 
void markDone ()
 
boolean checkIfThereIsAnHbEnd (MenuCommand cmd)
 

Additional Inherited Members

- Protected Attributes inherited from com.thecoderscorner.menu.remote.states.BaseMessageProcessingState
final System.Logger logger = System.getLogger(getClass().getSimpleName())
 
final RemoteConnectorContext context
 
AtomicInteger disconnectInterval = new AtomicInteger(5000)
 
AtomicLong lastReception = new AtomicLong(0)
 

Member Function Documentation

◆ canSendCommandToRemote()

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

called before any command is sent in order for the state to disallow

Parameters
commandthe command to check
Returns
true to send, false to suppress.

Implements com.thecoderscorner.menu.remote.states.RemoteConnectorState.

◆ getAuthenticationStatus()

AuthStatus com.thecoderscorner.menu.remote.states.SerialAwaitFirstMsgState.getAuthenticationStatus ( )
Returns
the current authentication status as determined by the state.

Implements com.thecoderscorner.menu.remote.states.RemoteConnectorState.


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