cz.cuni.amis.pogamut.udk.communication.translator.bot.state
Class ReadyState
java.lang.Object
cz.cuni.amis.pogamut.udk.communication.translator.observer.support.AbstractObserverFSMState<InfoMessage,TranslatorContext>
cz.cuni.amis.pogamut.udk.communication.translator.bot.state.ReadyState
- All Implemented Interfaces:
- cz.cuni.amis.fsm.IFSMState<InfoMessage,TranslatorContext>
public class ReadyState
- extends AbstractObserverFSMState<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
- GameInfo message - switches to the HandshakeControllerState
- 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 AbstractObserverFSMState<InfoMessage,TranslatorContext>
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.