|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Inteface for implementing a queue with variable-size elements.
Base implementation is provided by VariableSizeQueueImpl.
| Method Summary | |
void |
enqueue(double key_,
java.lang.Object element_,
int size_)
Enqueues the element with the associated key. |
void |
enqueue(java.lang.Object element_,
int size_)
Associates the element with the largest key in the queue and then enqueues the element. |
boolean |
enqueueAfter(java.lang.Object previousElement_,
java.lang.Object element_,
int size_)
Enqueues the element right after the previousElement_
element and associates the element with a key equal to the previous
element's. |
boolean |
enqueueAt(int pos_,
double key_,
java.lang.Object element_,
int size_)
Enqueues the element at the position specified with the associated key. |
int |
getSize()
Returns the current size of the queue. |
| Methods inherited from interface drcl.util.queue.Queue |
_retrieveAll, contains, containsKey, dequeue, dequeue, diag, enqueue, enqueue, enqueueAfter, enqueueAt, firstElement, firstKey, getElementEnumerator, getKeyEnumerator, getLength, info, info, info, isEmpty, keys, lastElement, lastKey, merge, oneline, remove, remove, remove, removeAll, removeAll, reset, retrieveAll, retrieveAll, retrieveAt, retrieveBy, retrieveKey, retrieveKeyAt |
| Method Detail |
public void enqueue(double key_,
java.lang.Object element_,
int size_)
key_ - the associated key.element_ - the element to be put in the queue.size_ - size of the element.
public boolean enqueueAt(int pos_,
double key_,
java.lang.Object element_,
int size_)
pos_ - the position.key_ - the associated key.element_ - the element to be put in the queue.size_ - size of the element.
public boolean enqueueAfter(java.lang.Object previousElement_,
java.lang.Object element_,
int size_)
previousElement_
element and associates the element with a key equal to the previous
element's.
previousElement_ - the previous element.element_ - the element to be put in the queue.size_ - size of the element.
previousElement_ does not appear.
public void enqueue(java.lang.Object element_,
int size_)
size_ - size of the element.public int getSize()
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||