public abstract class StdSingleServerQueue extends SingleServerQueue
StdSingleServerQueue
is still an abstract class as it does not
define methods ReceiveMessage
and
HandleEndOfService
. It contains statistics measuring server
occupancy as well as variables for service time (per length unit) and buffer
size which are read as parameters. If UseStatistics is unset the
statistic is not used (may be useful to increase performance).Entity.PortAlias
Modifier and Type | Field and Description |
---|---|
protected int |
bufferSize |
protected IntegralStatistic |
occupancyStat |
protected double |
serviceTime |
protected boolean |
useStatistics |
eosEvent, inputPort, outputPort
portAliases, ports, simNode
Modifier | Constructor and Description |
---|---|
|
StdSingleServerQueue(int bufferSize,
double serviceRate,
boolean useStatistics,
java.lang.String name,
SimNode parentNode) |
protected |
StdSingleServerQueue(java.lang.String name,
SimNode parentNode) |
Modifier and Type | Method and Description |
---|---|
protected double |
calcServiceTime(Message msg) |
handleEndOfService, receiveMessage
addPort, aliasPort, aliasPort, connect, disconnect, getName, getNode, getPortByName, getPorts, isPortKnown, unaliasPort
protected boolean useStatistics
protected double serviceTime
protected int bufferSize
protected IntegralStatistic occupancyStat
public StdSingleServerQueue(int bufferSize, double serviceRate, boolean useStatistics, java.lang.String name, SimNode parentNode)
protected StdSingleServerQueue(java.lang.String name, SimNode parentNode)
protected double calcServiceTime(Message msg)