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:
- cz.cuni.amis.fsm.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
- Author:
- Jimmy
ReadyState
public ReadyState()
init
public void init(TranslatorContext context)
restart
public void restart(TranslatorContext context)
stateEntering
public void stateEntering(TranslatorContext context,
cz.cuni.amis.fsm.IFSMState<InfoMessage,TranslatorContext> fromState,
InfoMessage symbol)
stateLeaving
public void stateLeaving(TranslatorContext context,
cz.cuni.amis.fsm.IFSMState<InfoMessage,TranslatorContext> toState,
InfoMessage symbol)
innerStateSymbol
protected void innerStateSymbol(TranslatorContext context,
InfoMessage symbol)
- Specified by:
innerStateSymbol in class AbstractServerFSMState<InfoMessage,TranslatorContext>
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.