cz.cuni.pogamut.communication
Interface MediatorClientInterface

All Known Implementing Classes:
AgentBody, MediatorForClient, UTServerConnection

public interface MediatorClientInterface

Interface which receives messages from Client used by Mediator.


Method Summary
 void closeClient()
          Close the connection (if any exists).
 java.lang.String receiveMessageFromClient()
          Get one message from client which is needed to deliver to the GameBots May block.
 void sendMessageToClient(MessageObject msg)
          Sends message object to the client.
 

Method Detail

receiveMessageFromClient

java.lang.String receiveMessageFromClient()
                                          throws CantReadException
Get one message from client which is needed to deliver to the GameBots May block.

Throws:
CantReadException
java.io.IOException

sendMessageToClient

void sendMessageToClient(MessageObject msg)
                         throws CantWriteException
Sends message object to the client.

Parameters:
msg -
Throws:
java.io.IOException
CantWriteException

closeClient

void closeClient()
                 throws CantCloseConnectionException
Close the connection (if any exists).

Throws:
CantCloseConnectionException