|
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.util.queue.QueueImpl
drcl.util.queue.SimpleQueue
drcl.util.queue.Stack
A first-in-last-out queue.
| Constructor Summary | |
Stack()
|
|
| Method Summary | |
boolean |
containsKey(double key_)
Returns true if the queue contains the key. |
void |
enqueue(double key_,
java.lang.Object element_)
Enqueues the element with the associated key. |
void |
enqueue(java.lang.Object element_)
Associates the element with the largest key in the queue and then enqueues the element. |
boolean |
enqueueAt(int pos_,
double key_,
java.lang.Object element_)
Enqueues the element at the position specified with the associated key. |
void |
merge(Queue that_)
Enqueues the elements in that_ by the order of
that_.dequeue(). |
java.lang.Object[] |
retrieveAll(double key_)
Returns all the elements with the keys matched to the argument. |
java.lang.Object |
retrieveBy(double key_)
Returns the first element with the key matched to the argument. |
| Methods inherited from class drcl.util.queue.SimpleQueue |
_retrieveAll, contains, dequeue, dequeue, enqueueAfter, firstElement, firstKey, getElementEnumerator, getKeyEnumerator, getLength, keys, lastElement, lastKey, oneline, remove, remove, remove, removeAll, removeAll, reset, retrieveAll, retrieveAt, retrieveKey, retrieveKeyAt |
| Methods inherited from class drcl.util.queue.QueueImpl |
diag, duplicate, info, info, info, isEmpty |
| Methods inherited from class drcl.DrclObj |
clone, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Stack()
| Method Detail |
public void enqueue(double key_,
java.lang.Object element_)
Queue
enqueue in interface Queueenqueue in class SimpleQueue
public boolean enqueueAt(int pos_,
double key_,
java.lang.Object element_)
Queue
enqueueAt in interface QueueenqueueAt in class SimpleQueuepublic void merge(Queue that_)
Queuethat_ by the order of
that_.dequeue().
merge in interface Queuemerge in class SimpleQueuepublic void enqueue(java.lang.Object element_)
Queue
enqueue in interface Queueenqueue in class SimpleQueuepublic java.lang.Object retrieveBy(double key_)
Queue
retrieveBy in interface QueueretrieveBy in class SimpleQueuepublic java.lang.Object[] retrieveAll(double key_)
Queue
retrieveAll in interface QueueretrieveAll in class SimpleQueuepublic boolean containsKey(double key_)
Queue
containsKey in interface QueuecontainsKey in class SimpleQueue
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||