|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.util.MessageQueue
public class MessageQueue
An implementation of a Linked List ... which would serve as our infinite buffer.
| Field Summary | |
|---|---|
protected static int |
EMPTY
Specifies that the logger Queue is empty |
protected static int |
NON_EMPTY_OR_FULL
Specifies that the Queue is neither empty or full and can give and accept further data. |
| Constructor Summary | |
|---|---|
MessageQueue()
MessageQueue constructor |
|
| Method Summary | |
|---|---|
void |
addItemToTop(Object object)
Adds an Item to the top of the message Queue |
protected Object |
clone()
clone method comment. |
Object |
get()
Gets a new Object from the MessageQueue. |
int |
getSize()
|
protected int |
getState()
Returns the current state of the MessageQueue |
static void |
main(String[] args)
The main method, with a built in test case for testing the linked list functions. |
void |
put(Object _object)
Puts a new Object into the MessageQueue. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int EMPTY
protected static final int NON_EMPTY_OR_FULL
| Constructor Detail |
|---|
public MessageQueue()
| Method Detail |
|---|
public void addItemToTop(Object object)
protected Object clone()
clone in class Objectpublic Object get()
public int getSize()
protected int getState()
public void put(Object _object)
_object - : The object to be inserted into the MessageQueuepublic static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||