|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.Component
drcl.comp.queue.ActiveQueue
drcl.comp.queue.QueueFIFO
| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary |
| Fields inherited from class drcl.comp.queue.ActiveQueue |
OUTPUT_PORT_ID |
| Constructor Summary | |
QueueFIFO()
|
|
QueueFIFO(java.lang.String id_)
|
|
| Method Summary | |
java.lang.Object |
dequeue()
Dequeues and returns the first object in the queue. |
void |
duplicate(java.lang.Object source_)
Duplicates the content of source_, including ID, name, child components and connections among them, to this component. |
java.lang.Object |
enqueue(java.lang.Object obj_)
Enqueues the object at the end of the queue |
java.lang.Object |
enqueueAt(java.lang.Object obj_,
int pos_)
Enqueues the object at the position specified. |
int |
getCapacity()
Returns the capacity of the queue. |
int |
getSize()
Returns the current size of the queue. |
java.lang.String |
info(java.lang.String prefix_)
|
boolean |
isEmpty()
Return true if the queue is empty. |
boolean |
isFull()
Return true if the queue is full. |
java.lang.Object |
peekAt(int pos_)
Retrieves but not dequeue the object at the position specified. |
void |
reset()
Resets the component for being used anew. |
java.lang.Object |
retrieveAt(int pos_)
Dequeues the object at the position specified. |
void |
setCapacity(int capacity_)
Sets the capacity of the queue. |
| Methods inherited from class drcl.comp.queue.ActiveQueue |
firstElement, getAvailableSize, increaseEnqueCount, info, lastElement |
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public QueueFIFO()
public QueueFIFO(java.lang.String id_)
| Method Detail |
public void reset()
Component
reset in class ActiveQueuepublic void duplicate(java.lang.Object source_)
Component
duplicate in interface ObjectDuplicableduplicate in class Componentpublic java.lang.String info(java.lang.String prefix_)
info in class ActiveQueuepublic java.lang.Object enqueue(java.lang.Object obj_)
enqueue in class ActiveQueue
public java.lang.Object enqueueAt(java.lang.Object obj_,
int pos_)
enqueueAt in class ActiveQueuepublic java.lang.Object dequeue()
dequeue in class ActiveQueuepublic java.lang.Object retrieveAt(int pos_)
retrieveAt in class ActiveQueuepublic java.lang.Object peekAt(int pos_)
peekAt in class ActiveQueuepublic boolean isFull()
isFull in class ActiveQueuepublic boolean isEmpty()
isEmpty in class ActiveQueuepublic void setCapacity(int capacity_)
setCapacity in class ActiveQueuecapacity_ - the new capacity.public int getCapacity()
getCapacity in class ActiveQueuepublic int getSize()
getSize in class ActiveQueue
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||