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, waitingTime
CREATE_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 |
peek()
Retrieve the QueueEntry that would be delivered next, without actually
removing it.
|
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, handleMessage, handleRejectedMessage, hasSpaceFor, statsUpdateDequeue, statsUpdateEnqueue, statsUpdateLoss, statsUpdateReject, wouldStore
protected final java.util.Deque<QueuingDiscipline.QueueEntry> queue
public LIFOQDisc(SimNode ownNode)
public LIFOQDisc(SimNode ownNode, Parameters pars)
public int getMaxSizeInUnits()
getMaxSizeInUnits
in interface QueuingDiscipline
getMaxSizeInUnits
in class StackableQueuingDiscipline
public boolean isEmpty()
isEmpty
in interface QueuingDiscipline
isEmpty
in class StackableQueuingDiscipline
protected void push(QueuingDiscipline.QueueEntry qe)
StackableQueuingDiscipline
push
in class StackableQueuingDiscipline
protected QueuingDiscipline.QueueEntry peek()
StackableQueuingDiscipline
peek
in class StackableQueuingDiscipline
protected QueuingDiscipline.QueueEntry pop()
StackableQueuingDiscipline
pop
in class StackableQueuingDiscipline