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.messages
Class MessageQueue

    java.lang.Object
      gecco.communication.messages.MessageQueue

public class MessageQueue
extends Object

A simple queue for messages to be sent, used both in the server and client part of the communication packages.

Author:
  Niklas Hallenfur

Constructor Summary
`MessageQueue()` Constructor for the MessageQueue object

Method Summary
`void` | `add(Message mess)` Description of the Method
`Message` | `get()` Description of the Method
`boolean` | `isEmpty()` Gets the Empty attribute of the MessageQueue object
`int` | `size()` Description of the Method

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

Constructor Detail

### MessageQueue

    public MessageQueue()

  Constructor for the MessageQueue object

Method Detail

### get

    public Message get()

  Description of the Method

  Returns:
    Description of the Returned Value

### isEmpty

    public boolean isEmpty()

  Gets the Empty attribute of the MessageQueue object

  Returns:
    The Empty value

### size

    public int size()

  Description of the Method

  Returns:
    Description of the Returned Value

### add

    public void add(Message mess)

  Description of the Method

  Parameters:
    `mess` - Description of Parameter

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