|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
| Method Summary | |
void |
clear()
Make the heap (logically) empty. |
java.lang.Object |
deleteMin()
Deletes and returns the smallest item from the priority queue, maintaining heap order. |
void |
insert(java.lang.Object obj,
long priority)
Insert into the priority queue, maintaining heap order. |
boolean |
isEmpty()
Check whether the heap is empty. |
boolean |
isFull()
Check whether the heap is full. |
int |
size()
Returns the number of elements in this priority queue. |
| Method Detail |
public void insert(java.lang.Object obj,
long priority)
throws QueueFullException
obj - the item to insertpriority - the priority to be assigned to the item objQueueFullException - if the heap is full
public java.lang.Object deleteMin()
throws QueueEmptyException
QueueEmptyException - if the queue is emptypublic int size()
public boolean isEmpty()
public boolean isFull()
public void clear()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||