|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcz.cuni.pogamut.communication.RemoteParserForMediator
public class RemoteParserForMediator
This class should connect to remote parser and get messages from it.
| Field Summary | |
|---|---|
private ParserConnection |
connection
|
| Constructor Summary | |
|---|---|
RemoteParserForMediator(ParserConnection connection)
Initialize the class. |
|
| Method Summary | |
|---|---|
void |
closeGB()
Close the connection to the GameBots, if any exists. |
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. |
void |
sendMessageToGB(java.lang.String msg)
Sends message to the GameBots from the client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private ParserConnection connection
| Constructor Detail |
|---|
public RemoteParserForMediator(ParserConnection connection)
connection - already connected (opened) connection to RemoteParser.| Method Detail |
|---|
public MessageObject receiveParsedMessage()
throws CantReadException
MediatorParserInterface
receiveParsedMessage in interface MediatorParserInterfaceCantReadException - Unable to read from GameBots.
public void sendMessageToGB(java.lang.String msg)
throws CantWriteException
MediatorGBInterface
sendMessageToGB in interface MediatorGBInterfaceCantWriteException - Can't send data to GameBot.
public void closeGB()
throws CantCloseConnectionException
MediatorGBInterface
closeGB in interface MediatorGBInterfaceCantCloseConnectionException
public void closeParser()
throws CantCloseConnectionException
MediatorParserInterface
closeParser in interface MediatorParserInterfaceCantCloseConnectionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||