Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## gecco.communication.server
Class DataOutputExchangeHandler

    java.lang.Object
      gecco.communication.server.DataOutputExchangeHandler

All Implemented Interfaces:
  Runnable

public class DataOutputExchangeHandler
extends Object
implements Runnable

a class that listens for incoming messages from the client, receives them, and tells the server about them

Author:
  Niklas Hallenfur, Karl Hasselström, Henrik Hägerström, Jon Åslund

Field Summary
`Boolean` | `pingSyncObject` Description of the Field

Constructor Summary
`DataOutputExchangeHandler(MessageQueue q, ClientConnection cc, Server se, ClientConnectionHandler cch)` Constructor for the DataOutputExchangeHandler object

Method Summary
`void` | `abortGame()` called when the client says it wants to abort the game or disconnect
`void` | `addMessageToQueue(Message message)` Adds a feature to the MessageToQueue attribute of the DataOutputExchangeHandler object
`void` | `kill()` called whenever someone wants this Thread to die
`void` | `run()` Main processing method for the DataOutputExchangeHandler object

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### pingSyncObject

    public Boolean pingSyncObject

  Description of the Field

Constructor Detail

### DataOutputExchangeHandler

    public DataOutputExchangeHandler(MessageQueue q,
                                     ClientConnection cc,
                                     Server se,
                                     ClientConnectionHandler cch)

  Constructor for the DataOutputExchangeHandler object

Parameters:
  `q` - Description of Parameter
  `cc` - Description of Parameter
  `se` - Description of Parameter
  `cch` - Description of Parameter

Method Detail

### addMessageToQueue

    public void addMessageToQueue(Message message)

  Adds a feature to the MessageToQueue attribute of the DataOutputExchangeHandler object

  Parameters:
    `message` - The feature to be added to the MessageToQueue attribute

### run

    public void run()

  Main processing method for the DataOutputExchangeHandler object

  Specified by:
    `run` in interface `Runnable`

### abortGame

    public void abortGame()

  called when the client says it wants to abort the game or disconnect

### kill

    public void kill()

  called whenever someone wants this Thread to die

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD