cz.cuni.amis.pogamut.ut2004.communication.translator.bot
Class BotFSM

java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.communication.translator.bot.BotFSM
All Implemented Interfaces:
IWorldMessageTranslator

public class BotFSM
extends java.lang.Object
implements IWorldMessageTranslator

BotFSM is wrapper for the FSM instance that uses states from cz.cuni.amis.pogamut.ut2004.communication.translator.bot package.


Constructor Summary
BotFSM(ItemTranslator translator, IAgentLogger logger)
           
 
Method Summary
 IWorldChangeEvent[] processMessage(InfoMessage message)
          The handler must process the message and return 0,1 or more world events.
 void reset()
          Reinitialize the translator.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BotFSM

@Inject
public BotFSM(ItemTranslator translator,
                     IAgentLogger logger)
Method Detail

processMessage

public IWorldChangeEvent[] processMessage(InfoMessage message)
                                   throws TranslatorException
Description copied from interface: IWorldMessageTranslator
The handler must process the message and return 0,1 or more world events.

Specified by:
processMessage in interface IWorldMessageTranslator
Returns:
Throws:
TranslatorException

reset

public void reset()
Description copied from interface: IWorldMessageTranslator
Reinitialize the translator.

Specified by:
reset in interface IWorldMessageTranslator

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object