|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gecco.communication.server.DataInputExchangeHandler
a class that sends messages from the server, in the send queue
Field Summary | |
private ClientConnection |
connection
Description of the Field |
private DataOutputExchangeHandler |
DEHOutput
Description of the Field |
private boolean |
disconnect
Description of the Field |
private ClientConnectionHandler |
i_am_working_for
Description of the Field |
private Server |
server
Description of the Field |
Constructor Summary | |
DataInputExchangeHandler(ClientConnection cc,
Server se,
ClientConnectionHandler cch,
DataOutputExchangeHandler outputDEH)
Constructor for the DataInputExchangeHandler object |
Method Summary | |
void |
abortGame()
called when the client says it wants to abort the game or disconnect |
private void |
acknowledgePingReply()
Description of the Method |
void |
getAbortAction()
gets a message from the client that tells the server that a unit wants to abort an action |
void |
getActionOnPosition()
gets a message from the client that tells the server that a unit wants to perform an action with a position as target |
void |
getActionOnUnit()
gets a message from the client that tells the server that a unit wants to perform an action with a unit as target |
void |
getActionOnVoid()
gets a message from the client that tells the server that a unit wants to perform an action with no target |
private void |
getStartGame()
Gets the StartGame attribute of the DataInputExchangeHandler object |
void |
kill()
called whenever someone wants this Thread to die |
private void |
receiveMessage(int leadingInteger)
Called when there is a message to be received in the InputStream from the client |
void |
run()
Main processing method for the DataInputExchangeHandler object |
Methods inherited from class java.lang.Object |
|
Field Detail |
private ClientConnection connection
private Server server
private ClientConnectionHandler i_am_working_for
private boolean disconnect
private DataOutputExchangeHandler DEHOutput
Constructor Detail |
public DataInputExchangeHandler(ClientConnection cc, Server se, ClientConnectionHandler cch, DataOutputExchangeHandler outputDEH)
cc
- Description of Parameterse
- Description of Parametercch
- Description of ParameteroutputDEH
- Description of ParameterMethod Detail |
public void getActionOnVoid() throws Exception
Exception
- Description of Exceptionpublic void getActionOnUnit() throws Exception
Exception
- Description of Exceptionpublic void getActionOnPosition() throws Exception
Exception
- Description of Exceptionpublic void getAbortAction() throws Exception
Exception
- Description of Exceptionpublic void run()
run
in interface Runnable
public void abortGame()
public void kill()
private void getStartGame() throws Exception
Exception
- Description of Exceptionprivate void receiveMessage(int leadingInteger)
leadingInteger
- Description of Parameterprivate void acknowledgePingReply() throws Exception
Exception
- Description of Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |