net.clackrouter.netutils
Class PQueue
java.lang.Object
net.clackrouter.netutils.PQueue
public class PQueue
- extends java.lang.Object
My algo teacher would cry, but i'm implementing a priority queue as a list
and am finding the max elem using a linear scan b/c our networks are tiny
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PQueue
public PQueue()
add
public void add(int priority,
java.lang.Object o)
size
public int size()
peekData
public java.lang.Object peekData()
peekPriority
public int peekPriority()
pop
public java.lang.Object pop()