public abstract class FIFOQDisc extends StackableQueuingDiscipline
UnboundedFIFOQDisc)
and a bounded version (BoundedFIFOQDisc).LIFOQDiscQueuingDiscipline.QueueEntry| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<QueuingDiscipline.QueueEntry> |
queue |
lossProbability, numberOfMessages, numberOfUnits, parent, simNode, transferTime, waitingTimeCREATE_INSTANCE_METHOD_NAME| Constructor and Description |
|---|
FIFOQDisc(SimNode ownNode) |
FIFOQDisc(SimNode ownNode,
Parameters pars) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxSizeInUnits() |
boolean |
isEmpty() |
protected QueuingDiscipline.QueueEntry |
peekInternal() |
protected QueuingDiscipline.QueueEntry |
pop()
Retrieve and remove the next QueueEntry according to the queuing
discipline.
|
protected void |
push(QueuingDiscipline.QueueEntry qe)
Push message into the data structure managed by the queuing discipline.
|
dequeue, dropScheduledNext, enqueue, getCurrentNumberOfMessages, getCurrentNumberOfUnits, getName, getNode, getParent, handleLossMessage, handleLossMessageInternal, handleMessage, handleRejectedMessage, hasSpaceFor, peek, statsUpdateDequeue, statsUpdateEnqueue, statsUpdateLoss, statsUpdateReject, wouldStoreprotected final java.util.List<QueuingDiscipline.QueueEntry> queue
public FIFOQDisc(SimNode ownNode)
public FIFOQDisc(SimNode ownNode, Parameters pars)
public int getMaxSizeInUnits()
getMaxSizeInUnits in interface QueuingDisciplinegetMaxSizeInUnits in class StackableQueuingDisciplinepublic boolean isEmpty()
isEmpty in interface QueuingDisciplineisEmpty in class StackableQueuingDisciplineprotected void push(QueuingDiscipline.QueueEntry qe)
StackableQueuingDisciplinepush in class StackableQueuingDisciplineprotected QueuingDiscipline.QueueEntry peekInternal()
peekInternal in class StackableQueuingDisciplineprotected QueuingDiscipline.QueueEntry pop()
StackableQueuingDisciplinepop in class StackableQueuingDiscipline