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

Field Summary
(package private)  LinkedList items
          Description of the Field
 
Constructor Summary
MessageQueue()
          Constructor for the MessageQueue object
 
Method Summary
 void add(Object mess)
          Description of the Method
 Object 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, registerNatives, toString, wait, wait, wait
 

Field Detail

items

LinkedList items
Description of the Field
Constructor Detail

MessageQueue

public MessageQueue()
Constructor for the MessageQueue object
Method Detail

get

public Object 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(Object mess)
Description of the Method
Parameters:
mess - Description of Parameter