network
Class PriorityQueue

java.lang.Object
  extended by network.Queue
      extended by network.PriorityQueue

public class PriorityQueue
extends Queue


Field Summary
 
Fields inherited from class network.Queue
pop
 
Constructor Summary
PriorityQueue(int n)
           
 
Method Summary
protected  Queue buildOneQueue()
           
 boolean canAccept(Customer c)
           
protected  Customer headOfQueue()
           
protected  void insertAtHeadOfQueue(Customer e)
           
protected  void insertIntoQueue(Customer e)
          These abstract methods allow different queueing disciplines to be supported - see the various subclasses
protected  Customer removeFromQueue()
           
 
Methods inherited from class network.Queue
dequeue, enqueue, enqueueAtHead, getCapacity, head, isEmpty, isInfinite, meanQueueLength, meanTimeInQueue, queueLength, resetMeasures, varQueueLength, varTimeInQueue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriorityQueue

public PriorityQueue(int n)
Method Detail

buildOneQueue

protected Queue buildOneQueue()

canAccept

public boolean canAccept(Customer c)
Overrides:
canAccept in class Queue

insertIntoQueue

protected void insertIntoQueue(Customer e)
Description copied from class: Queue
These abstract methods allow different queueing disciplines to be supported - see the various subclasses

Specified by:
insertIntoQueue in class Queue

insertAtHeadOfQueue

protected void insertAtHeadOfQueue(Customer e)
Specified by:
insertAtHeadOfQueue in class Queue

headOfQueue

protected Customer headOfQueue()
Specified by:
headOfQueue in class Queue

removeFromQueue

protected Customer removeFromQueue()
Specified by:
removeFromQueue in class Queue