|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Extends the priority queue interface to support removal and reprioritization of elements. To implement this interface efficiently, you will need a location-aware implementation of entries (so that you can restore the heap property after such changes).
| Method Summary | |
container.Entry |
remove(container.Entry e)
Remove an entry, and return that entry (for convenience). |
java.lang.Object |
replaceKey(container.Entry e,
java.lang.Object key)
Replace the key of the given entry. |
java.lang.Object |
replaceValue(container.Entry e,
java.lang.Object value)
Replace the value of the given entry. |
| Methods inherited from interface pqueue.PriorityQueue |
insert, isEmpty, min, removeMin, size |
| Method Detail |
public container.Entry remove(container.Entry e)
throws InvalidEntryException
InvalidEntryException
public java.lang.Object replaceKey(container.Entry e,
java.lang.Object key)
throws InvalidEntryException,
InvalidKeyException
InvalidEntryException
InvalidKeyException
public java.lang.Object replaceValue(container.Entry e,
java.lang.Object value)
throws InvalidEntryException
InvalidEntryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||