Method Summary |
|
public synchronized void | clear() Remove all objects from queue. |
public synchronized boolean | delete(Prioritized x) Delete an object from queue. |
final void | deleteElement(int i) |
public synchronized Object | deleteMin() Get and delete the object with lowest priority. |
public static void | dump(PriorityQueue q) |
public synchronized Enumeration | elements() |
public synchronized boolean | empty() Test whether queue is empty. |
public synchronized Object | getMin() Get object with lowest priority from queue. |
final float | getPriority(int i) |
final void | heapify(int i) |
public static void | main(String[] args) |
public synchronized void | put(Prioritized x) Put an object on the queue. |
public synchronized int | size() Get number of objects in queue. |
final void | swap(int i, int j) |
public synchronized void | update() Rebuild priority queuein case the priorities of its elements
have changed since they were inserted. |