public abstract class LIFOQDisc extends StackableQueuingDiscipline
UnboundedLIFOQDisc)
and a bounded version (BoundedLIFOQDisc).QueuingDiscipline.QueueEntry| Modifier and Type | Field and Description |
|---|---|
protected java.util.Deque<QueuingDiscipline.QueueEntry> |
queue |
lossProbability, numberOfMessages, numberOfUnits, parent, simNode, transferTime, waitingTimeCREATE_INSTANCE_METHOD_NAME| Constructor and Description |
|---|
LIFOQDisc(SimNode ownNode) |
LIFOQDisc(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.Deque<QueuingDiscipline.QueueEntry> queue
public LIFOQDisc(SimNode ownNode)
public LIFOQDisc(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