Class NoOperationInitialState
java.lang.Object
com.thecoderscorner.menu.remote.states.NoOperationInitialState
- All Implemented Interfaces:
RemoteConnectorState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSendCommandToRemote(MenuCommand command)called before any command is sent in order for the state to disallowvoidcalled when a state machine class becomes activevoidexitState(RemoteConnectorState nextState)called when a state machine class is deactivatedvoidrunLoop()called when a state is the current state, the state can read messages and attempt connections in this loop.
-
Constructor Details
-
Method Details
-
enterState
public void enterState()Description copied from interface:RemoteConnectorStatecalled when a state machine class becomes active- Specified by:
enterStatein interfaceRemoteConnectorState
-
getAuthenticationStatus
- Specified by:
getAuthenticationStatusin interfaceRemoteConnectorState- Returns:
- the current authentication status as determined by the state.
-
runLoop
Description copied from interface:RemoteConnectorStatecalled 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.- Specified by:
runLoopin interfaceRemoteConnectorState- Throws:
Exception
-