cz.cuni.pogamut.communication
Interface MediatorParserInterface

All Known Implementing Classes:
Parser, RemoteParserForMediator

public interface MediatorParserInterface

Interface which receives parsed messages from GameBots used by Mediator


Method Summary
 void closeParser()
          Close the connection to the parser (if any exists).
 MessageObject receiveParsedMessage()
          Get one message from game bots (already parsed via parser) which is needed to deliver to the Client.
 

Method Detail

receiveParsedMessage

MessageObject receiveParsedMessage()
                                   throws CantReadException
Get one message from game bots (already parsed via parser) which is needed to deliver to the Client. May block.

Throws:
CantReadException - Unable to read from GameBots.

closeParser

void closeParser()
                 throws CantCloseConnectionException
Close the connection to the parser (if any exists).

Throws:
CantCloseConnectionException