|
J-Sim v1.2.1-p7 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.inet.core.Queue
drcl.inet.core.queue.DropTail
| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary | |
protected int |
capacity
|
static java.lang.String |
EVENT_QLEN
|
protected VSFIFOQueue |
q
|
protected Port |
qLenPort
|
| Fields inherited from class drcl.comp.queue.ActiveQueue |
nrequests, outport, OUTPUT_PORT_ID |
| Fields inherited from interface drcl.inet.core.InetCoreConstants |
CONFIG_PORT_ID, PULL_PORT_ID |
| Constructor Summary | |
DropTail()
|
|
DropTail(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 |
firstElement()
Retrieves but not dequeue the first object in the queue. |
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 |
lastElement()
Retrieves but not remove the last object in the queue. |
java.lang.Object |
peekAt(int pos_)
Retrieves but not remove the object at the position specified. |
void |
reset()
Resets the component for being used anew. |
void |
setCapacity(int capacity_)
Sets the capacity of the queue. |
| Methods inherited from class drcl.inet.core.Queue |
createConfigPort, getMode, isByteMode, isPacketMode, setMode |
| Methods inherited from class drcl.comp.queue.ActiveQueue |
_getnrequests, _setnrequests, enqueueAt, getAvailableSize, getEnqueCount, increaseEnqueCount, info, process, pull, retrieveAt |
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String EVENT_QLEN
protected Port qLenPort
protected VSFIFOQueue q
protected int capacity
| Constructor Detail |
public DropTail()
public DropTail(java.lang.String id_)
| Method Detail |
public void reset()
Component
reset in class Queuepublic void duplicate(java.lang.Object source_)
Component
duplicate in interface ObjectDuplicableduplicate in class Queuepublic java.lang.String info(java.lang.String prefix_)
info in class Queuepublic java.lang.Object enqueue(java.lang.Object obj_)
enqueue in class ActiveQueuepublic java.lang.Object dequeue()
dequeue in class ActiveQueuepublic java.lang.Object peekAt(int pos_)
peekAt in class ActiveQueuepublic java.lang.Object firstElement()
firstElement in class ActiveQueuepublic java.lang.Object lastElement()
lastElement in class ActiveQueuepublic boolean isFull()
isFull in class ActiveQueuepublic boolean isEmpty()
isEmpty in class ActiveQueuepublic void setCapacity(int capacity_)
setCapacity in class Queuecapacity_ - the new capacity.public int getCapacity()
getCapacity in class Queuepublic int getSize()
getSize in class Queue
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||