|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnetwork.Queue
network.PriorityQueue
public class PriorityQueue
| 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 |
|---|
public PriorityQueue(int n)
| Method Detail |
|---|
protected Queue buildOneQueue()
public boolean canAccept(Customer c)
canAccept in class Queueprotected void insertIntoQueue(Customer e)
Queue
insertIntoQueue in class Queueprotected void insertAtHeadOfQueue(Customer e)
insertAtHeadOfQueue in class Queueprotected Customer headOfQueue()
headOfQueue in class Queueprotected Customer removeFromQueue()
removeFromQueue in class Queue
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||