|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PriorityQueueIF
Interface that describes the operations on a priority queue. A priority queue is a structure that allows access to the element with the lowest key in a O(1) time and the add or delete operation in O(log(N)).
Creation date: 05-Jan.-2004
Method Summary | |
---|---|
void |
add(PriorityQueueObject elem)
Adds an object to the queue. |
PriorityQueueObject |
next()
Gets the object with the minimum key in the queue |
PriorityQueueObject |
removeNext()
Removes and returns the next object from the queue |
int |
size()
Gets the size of the queue |
void |
update(PriorityQueueObject elem)
Updates the Object with the same id in the queue |
Method Detail |
---|
PriorityQueueObject next()
void add(PriorityQueueObject elem)
elem
- the object to addPriorityQueueObject removeNext()
void update(PriorityQueueObject elem)
elem
- The object to update in the queueint size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |