public class NonBlockingOutputPort extends OutputPort
Caution:
NonBlockingOutputPorts stores the message until the next entity calls
HandleGetMessage. When an entity with a NonBlockingOutputPort gathers
statistical data, this storing capability has to be considered.
Message must be fetched by receiving port before SendMessage() is called again.
Modifier and Type | Field and Description |
---|---|
protected Message |
message |
next, OUTPUT_PORT_NAME
Constructor and Description |
---|
NonBlockingOutputPort(Entity owner) |
NonBlockingOutputPort(Entity owner,
java.lang.String portName) |
Modifier and Type | Method and Description |
---|---|
protected Message |
handleGetMessage() |
protected boolean |
handleIsMessageAvailable() |
void |
sendMessage(Message m) |
connect, disconnect, getConnectedInputPort, getConnectedPort, handleMessageIndication, setConnectedInputPort
addPortMonitor, getDelimiter, getLocalName, getMessage, getName, getOwner, isConnected, isMessageAvailable, messageIndication, removePortMonitor
protected Message message
public NonBlockingOutputPort(Entity owner, java.lang.String portName)
public NonBlockingOutputPort(Entity owner)
public void sendMessage(Message m)
protected Message handleGetMessage()
handleGetMessage
in class Port
protected boolean handleIsMessageAvailable()
handleIsMessageAvailable
in class Port