|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.aplu.nxt.CQueue
public class CQueue
Implementation of a circular queue of fixed size (FIFO buffer) containing elements of class CQueueData.
CQueueData| Constructor Summary | |
|---|---|
CQueue(int size)
Creates a queue with given maximal number of elements. |
|
| Method Summary | |
|---|---|
int |
available()
Returns the current number of data elements in the queue. |
CQueueData |
get()
Returns the next element from the queue. |
boolean |
put(CQueueData data)
Puts given given element at the next position of the queue. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CQueue(int size)
size - the size of the queue (maximal number of elements before overrun)| Method Detail |
|---|
public boolean put(CQueueData data)
public CQueueData get()
public int available()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||