public interface QueuingDiscipline extends ReflectionConstructable2<SimNode,Parameters>
| Modifier and Type | Interface and Description |
|---|---|
static class |
QueuingDiscipline.QueueEntry |
CREATE_INSTANCE_METHOD_NAME| Modifier and Type | Method and Description |
|---|---|
QueuingDiscipline.QueueEntry |
dequeue()
Dequeue the next
QueuingDiscipline.QueueEntry according to the
QueuingDiscipline. |
QueuingDiscipline.QueueEntry |
dropScheduledNext()
This method returns the
QueuingDiscipline.QueueEntry that would be delivered next,
but accounts it as drop. |
int |
getCurrentNumberOfMessages() |
long |
getCurrentNumberOfUnits() |
int |
getMaxSizeInUnits() |
java.lang.String |
getName() |
SimNode |
getNode() |
SimNode |
getParent() |
boolean |
handleMessage(Message msg)
Request the
QueuingDiscipline to handle the Message. |
boolean |
isEmpty() |
boolean |
wouldStore(Message msg) |
int getMaxSizeInUnits()
java.lang.String getName()
SimNode getNode()
SimNode getParent()
boolean isEmpty()
boolean wouldStore(Message msg)
int getCurrentNumberOfMessages()
long getCurrentNumberOfUnits()
QueuingDiscipline.QueueEntry dequeue()
QueuingDiscipline.QueueEntry according to the
QueuingDiscipline. This will be accounted for as successful
forwarding.QueuingDiscipline.QueueEntryboolean handleMessage(Message msg)
QueuingDiscipline to handle the Message. This
can either store it, then it returns true, or drop it, then it return
false. If it drops it, this drop will be accounted for (as drop with 0
waiting time).msg - QueuingDiscipline.QueueEntry dropScheduledNext()
QueuingDiscipline.QueueEntry that would be delivered next,
but accounts it as drop.QueuingDiscipline.QueueEntry