public abstract class SingleServerQueue extends Entity implements MessageReceiver
SingleServerQueue is an abstract base class for single servers.
It provides a non-blocking input port ("input") and a non-blocking
(synchronous) output port ("output").
Messages received on the input port are forwarded to the method
ReceiveMessage which has to be defined in derived classes.
Moreover, it contains an end of service event which is handled by
HandleEndOfService that has to defined in subclasses.
Entity.PortAlias| Modifier and Type | Field and Description |
|---|---|
protected Event |
eosEvent |
protected NonBlockingInputPort |
inputPort |
protected SynchronousOutputPort |
outputPort |
portAliases, ports, simNode| Constructor and Description |
|---|
SingleServerQueue(java.lang.String name,
SimNode parentNode) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
handleEndOfService(double currentTime) |
abstract void |
receiveMessage(Message msg) |
addPort, aliasPort, aliasPort, connect, disconnect, getName, getNode, getPortByName, getPorts, isPortKnown, unaliasPortprotected final NonBlockingInputPort inputPort
protected final SynchronousOutputPort outputPort
protected final Event eosEvent
public SingleServerQueue(java.lang.String name,
SimNode parentNode)
public abstract void receiveMessage(Message msg)
receiveMessage in interface MessageReceiverpublic abstract void handleEndOfService(double currentTime)