cz.cuni.amis.pogamut.ut2004.communication.translator.server.state
Class ReadyState
java.lang.Object
cz.cuni.amis.pogamut.ut2004.communication.translator.server.support.AbstractServerFSMState<InfoMessage,TranslatorContext>
cz.cuni.amis.pogamut.ut2004.communication.translator.server.state.ReadyState
- All Implemented Interfaces:
- IFSMState<InfoMessage,TranslatorContext>
public class ReadyState
- extends AbstractServerFSMState<InfoMessage,TranslatorContext>
When the HELLO_CONTROL_SERVER message comes we switch into this state that sends the ReadyCommandRequest event to the world view
and waits for next symbol, it may be:
- Password message - switches to the PasswordState
- HandShakeStart message - switches to the ServerRunningState - controls the handshake
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ReadyState
public ReadyState()
init
public void init(TranslatorContext context)
restart
public void restart(TranslatorContext context)
stateEntering
public void stateEntering(TranslatorContext context,
IFSMState<InfoMessage,TranslatorContext> fromState,
InfoMessage symbol)
stateLeaving
public void stateLeaving(TranslatorContext context,
IFSMState<InfoMessage,TranslatorContext> toState,
InfoMessage symbol)
innerStateSymbol
protected void innerStateSymbol(TranslatorContext context,
InfoMessage symbol)
- Specified by:
innerStateSymbol
in class AbstractServerFSMState<InfoMessage,TranslatorContext>