cz.cuni.amis.pogamut.ut2004.communication.translator.bot.state
Class PathAcceptState

java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.communication.translator.bot.support.AbstractBotFSMState<InfoMessage,CONTEXT>
      extended by cz.cuni.amis.pogamut.ut2004.communication.translator.bot.support.BotListState<PathList,TranslatorContext>
          extended by cz.cuni.amis.pogamut.ut2004.communication.translator.bot.state.PathAcceptState
All Implemented Interfaces:
IFSMState<InfoMessage,TranslatorContext>

public class PathAcceptState
extends BotListState<PathList,TranslatorContext>

Takes care of the path list. It stores them inside a List object and when END message comes it sends them to the world view via Path event.


Constructor Summary
PathAcceptState()
           
 
Method Summary
 void stateEntering(TranslatorContext context, IFSMState<InfoMessage,TranslatorContext> fromState, InfoMessage symbol)
           
 void stateLeaving(TranslatorContext context, IFSMState<InfoMessage,TranslatorContext> toState, InfoMessage symbol)
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.translator.bot.support.BotListState
getList, init, newList, restart, stateSymbol
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.translator.bot.support.AbstractBotFSMState
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PathAcceptState

public PathAcceptState()
Method Detail

stateEntering

public void stateEntering(TranslatorContext context,
                          IFSMState<InfoMessage,TranslatorContext> fromState,
                          InfoMessage symbol)
Specified by:
stateEntering in interface IFSMState<InfoMessage,TranslatorContext>
Overrides:
stateEntering in class BotListState<PathList,TranslatorContext>

stateLeaving

public void stateLeaving(TranslatorContext context,
                         IFSMState<InfoMessage,TranslatorContext> toState,
                         InfoMessage symbol)
Specified by:
stateLeaving in interface IFSMState<InfoMessage,TranslatorContext>
Overrides:
stateLeaving in class BotListState<PathList,TranslatorContext>