modelMailbox
Receives and stores message instances in a FIFO queue.
Information
The mailbox of the State Graph2 model stores incoming message-events. The mailbox is a FIFO queue. The queue size is determined by the parameter queueSize.
Futher the user must specify how many integer, boolean, and real parameters the messages which should be buffered have. Therefore, the parameters numberofMessageIntegers, numberOfMessageBooleans, and numberOfMessageReals must be set.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nOut | 0 | Number of output connections |
| Integer | nIn | 0 | Number of input connections |
| Integer | queueSize | 20 | The maximal size of the Queue |
| Integer | numberOfMessageIntegers | 0 | number of integer parameters of a message |
| Integer | numberOfMessageBooleans | 0 | number of boolean parameters of a message |
| Integer | numberOfMessageReals | 0 | number of real parameters of a message |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealTimeCoordinationLibrary.Internal.Interfaces.Asynchron.mailbox_output_port[nOut] | mailbox_output_port | Interface for sending messages with parameters | |
| RealTimeCoordinationLibrary.Internal.Interfaces.Asynchron.mailbox_input_port[nIn] | mailbox_input_port | Interface for receiving messages with parameters |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | filling_level | Result of the current filling level | |
| RealTimeCoordinationLibrary.Internal.Interfaces.Asynchron.IntQueue.Queue | int_q | ||
| RealTimeCoordinationLibrary.Internal.Interfaces.Asynchron.RealQueue.Queue | real_q | ||
| RealTimeCoordinationLibrary.Internal.Interfaces.Asynchron.RealQueue.Queue | time_q | ||
| RealTimeCoordinationLibrary.Internal.Interfaces.Asynchron.BooleanQueue.Queue | boolean_q | ||
| RealTimeCoordinationLibrary.Internal.Interfaces.Asynchron.IntQueue.Queue | instanceId_q | ||
| RealTimeCoordinationLibrary.Internal.Interfaces.Asynchron.IntQueue.Queue | ownerId_q | ||
| Integer[nOut*numberOfMessageIntegers] | intTemp | ||
| Real[nOut*numberOfMessageReals] | realTemp | ||
| Real[nOut] | timeTemp | ||
| Boolean[nOut*numberOfMessageBooleans] | booleanTemp | ||
| Integer[nOut] | instaceIdTemp | ||
| Integer[nOut] | ownerIdTemp | ||
| Integer | testInstanceIdTemp | ||
| Integer | testOwnerIdTemp | ||
| Boolean[nOut] | fire_out | Tells the transition that a message has been dequeud | |
| Boolean[nOut] | output_active | Stores if a message receiving transition is enable to fire |