|
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.util.queue.QueueImpl
drcl.util.queue.VariableSizeQueueImpl
drcl.util.queue.VSSimpleQueue
drcl.util.queue.FiniteVSSimpleQueue
Variable-size version of SimpleQueue.
| Constructor Summary | |
FiniteVSSimpleQueue()
|
|
| 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 |
getCapacity()
|
boolean |
isFull()
Returns true if this queue is full. |
boolean |
isFull(int size_)
Returns true if this queue is overflowed with the addition of size_. |
void |
merge(Queue that_)
Enqueues the elements in that_ by the order of
that_.dequeue(). |
java.lang.String |
oneline()
Prints the content of the queue in one line of string. |
void |
setCapacity(int cap_)
|
| Methods inherited from class drcl.util.queue.VSSimpleQueue |
_retrieveAll, contains, containsKey, dequeue, dequeue, firstElement, firstKey, getElementEnumerator, getKeyEnumerator, getLength, getSize, keys, lastElement, lastKey, remove, remove, remove, removeAll, removeAll, reset, retrieveAll, retrieveAll, retrieveAt, retrieveBy, retrieveKey, retrieveKeyAt |
| Methods inherited from class drcl.util.queue.VariableSizeQueueImpl |
duplicate, enqueue, enqueueAfter, enqueueAt, info |
| Methods inherited from class drcl.util.queue.QueueImpl |
diag, enqueue, info, info, isEmpty |
| Methods inherited from class drcl.DrclObj |
clone, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface drcl.util.queue.VariableSizeQueue |
getSize |
| 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, remove, remove, remove, removeAll, removeAll, reset, retrieveAll, retrieveAll, retrieveAt, retrieveBy, retrieveKey, retrieveKeyAt |
| Constructor Detail |
public FiniteVSSimpleQueue()
| Method Detail |
public void enqueue(double key_,
java.lang.Object element_,
int size_)
VariableSizeQueue
enqueue in interface VariableSizeQueueenqueue in class VSSimpleQueue
public boolean enqueueAfter(java.lang.Object previousElement_,
java.lang.Object element_,
int size_)
VariableSizeQueuepreviousElement_
element and associates the element with a key equal to the previous
element's.
enqueueAfter in interface VariableSizeQueueenqueueAfter in class VSSimpleQueue
public boolean enqueueAt(int pos_,
double key_,
java.lang.Object element_,
int size_)
VariableSizeQueue
enqueueAt in interface VariableSizeQueueenqueueAt in class VSSimpleQueuepublic void merge(Queue that_)
Queuethat_ by the order of
that_.dequeue().
merge in interface Queuemerge in class VSSimpleQueue
public void enqueue(java.lang.Object element_,
int size_)
VariableSizeQueue
enqueue in interface VariableSizeQueueenqueue in class VSSimpleQueuepublic java.lang.String oneline()
Queue
oneline in interface Queueoneline in class VSSimpleQueuepublic int getCapacity()
getCapacity in interface FiniteVSQueuepublic void setCapacity(int cap_)
setCapacity in interface FiniteVSQueuepublic boolean isFull()
FiniteVSQueue
isFull in interface FiniteVSQueuepublic boolean isFull(int size_)
FiniteVSQueuesize_.
isFull in interface FiniteVSQueue
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||