public abstract class Queue extends Entity
Modifier and Type | Class and Description |
---|---|
protected static class |
Queue.QueueEntry |
Entity.PortAlias
Modifier and Type | Field and Description |
---|---|
protected long |
currentNumberOfUnits
actual size of the queue in units "size in messages" in kept in the list
|
protected InputPort |
inputPort |
protected ProbabilityStatistic |
lossProbability |
protected IntegralStatistic |
numberOfMessages
length in Messages
|
protected IntegralStatistic |
numberOfUnits
length in (length) units
|
protected OutputPort |
outputPort |
protected SampleStatistic |
transferTime |
protected SampleStatistic |
waitingTime |
portAliases, ports, simNode
Constructor and Description |
---|
Queue(java.lang.String name,
SimNode parentNode) |
Modifier and Type | Method and Description |
---|---|
protected abstract Queue.QueueEntry |
get() |
abstract int |
getCurrentNumberOfMessages() |
abstract long |
getCurrentNumberOfUnits() |
InputPort |
getInput() |
abstract int |
getMaxSizeInUnits() |
OutputPort |
getOutput() |
protected Message |
handleGetMessage(Port port) |
protected boolean |
handleIsMessageAvailable(Port port) |
protected void |
handleLossMessage(Queue.QueueEntry qe) |
protected void |
handleMessageIndication(Message msg) |
abstract boolean |
isEmpty() |
abstract boolean |
isFull(Message msg) |
protected abstract void |
put(Queue.QueueEntry qe) |
addPort, aliasPort, aliasPort, connect, disconnect, getName, getNode, getPortByName, getPorts, isPortKnown, unaliasPort
protected long currentNumberOfUnits
protected final InputPort inputPort
protected final OutputPort outputPort
protected final SampleStatistic waitingTime
protected final SampleStatistic transferTime
protected final IntegralStatistic numberOfMessages
protected final IntegralStatistic numberOfUnits
protected final ProbabilityStatistic lossProbability
public Queue(java.lang.String name, SimNode parentNode)
public InputPort getInput()
public OutputPort getOutput()
protected abstract void put(Queue.QueueEntry qe)
protected abstract Queue.QueueEntry get()
protected void handleLossMessage(Queue.QueueEntry qe)
public abstract boolean isEmpty()
public abstract boolean isFull(Message msg)
public abstract int getCurrentNumberOfMessages()
public abstract long getCurrentNumberOfUnits()
public abstract int getMaxSizeInUnits()
protected boolean handleIsMessageAvailable(Port port)
protected void handleMessageIndication(Message msg)