|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PriorityQueueIFInt
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: 13-Oct.-2004
Method Summary | |
---|---|
void |
add(PriorityQueueObjectInt elem)
Adds an object to the queue. |
PriorityQueueObjectInt |
next()
Gets the object with the minimum key in the queue |
PriorityQueueObjectInt |
removeNext()
Removes and returns the next object from the queue |
int |
size()
Gets the size of the queue |
void |
update(PriorityQueueObjectInt elem)
Updates the Object with the same id in the queue |
Method Detail |
---|
PriorityQueueObjectInt next()
void add(PriorityQueueObjectInt elem)
elem
- the object to addPriorityQueueObjectInt removeNext()
void update(PriorityQueueObjectInt 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 |