|
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
Base class for implementing a queue with variable-size elements.
| Constructor Summary | |
VariableSizeQueueImpl()
|
|
| Method Summary | |
void |
duplicate(java.lang.Object source_)
opies the content of the source_ object to this object. |
void |
enqueue(double key_,
java.lang.Object element_)
Enqueues the element with the associated key. |
abstract 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_)
Enqueues the element right after the previousElement_
element and
associates the element with a key equal to the previous element's. |
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_)
Enqueues the element at the position specified with the associated key. |
boolean |
enqueueAt(int pos_,
double key_,
java.lang.Object element_,
int size_)
Enqueues the element at the position specified with the associated key. |
abstract int |
getSize()
Returns the current size of the queue. |
java.lang.String |
info(java.lang.String prefix_,
boolean listElement_)
Prints the content of the queue. |
void |
merge(Queue that_)
Enqueues the elements in that_ by the order of
that_.dequeue(). |
| Methods inherited from class drcl.util.queue.QueueImpl |
_retrieveAll, contains, containsKey, dequeue, dequeue, diag, enqueue, firstElement, firstKey, getElementEnumerator, getKeyEnumerator, getLength, info, info, isEmpty, keys, lastElement, lastKey, oneline, remove, remove, remove, removeAll, removeAll, reset, retrieveAll, retrieveAll, retrieveAt, retrieveBy, retrieveKey, retrieveKeyAt |
| 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.Queue |
_retrieveAll, contains, containsKey, dequeue, dequeue, diag, enqueue, firstElement, firstKey, getElementEnumerator, getKeyEnumerator, getLength, info, info, isEmpty, keys, lastElement, lastKey, oneline, remove, remove, remove, removeAll, removeAll, reset, retrieveAll, retrieveAll, retrieveAt, retrieveBy, retrieveKey, retrieveKeyAt |
| Constructor Detail |
public VariableSizeQueueImpl()
| Method Detail |
public void enqueue(double key_,
java.lang.Object element_)
Queue
enqueue in interface Queueenqueue in class QueueImpl
public boolean enqueueAt(int pos_,
double key_,
java.lang.Object element_)
Queue
enqueueAt in interface QueueenqueueAt in class QueueImpl
public boolean enqueueAfter(java.lang.Object previousElement_,
java.lang.Object element_)
QueuepreviousElement_
element and
associates the element with a key equal to the previous element's.
enqueueAfter in interface QueueenqueueAfter in class QueueImpl
public abstract void enqueue(double key_,
java.lang.Object element_,
int size_)
VariableSizeQueue
enqueue in interface VariableSizeQueuekey_ - 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_)
VariableSizeQueue
enqueueAt in interface VariableSizeQueuepos_ - 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_)
VariableSizeQueuepreviousElement_
element and associates the element with a key equal to the previous
element's.
enqueueAfter in interface VariableSizeQueuepreviousElement_ - the previous element.element_ - the element to be put in the queue.size_ - size of the element.
previousElement_ does not appear.public void merge(Queue that_)
Queuethat_ by the order of
that_.dequeue().
merge in interface Queuemerge in class QueueImpl
public void enqueue(java.lang.Object element_,
int size_)
VariableSizeQueue
enqueue in interface VariableSizeQueuesize_ - size of the element.public abstract int getSize()
VariableSizeQueue
getSize in interface VariableSizeQueue
public java.lang.String info(java.lang.String prefix_,
boolean listElement_)
Queue
info in interface Queueinfo in class QueueImplpublic void duplicate(java.lang.Object source_)
DrclObjsource_ object to this object.
he subclass must implement this method to realize DrclObj.clone().
duplicate in interface ObjectDuplicableduplicate in class QueueImpl
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||