modelMessage

Defines a message type and sends a message instance on Boolean input signal.

Information

We use messages to model asynchronous communication between different state graphs. Message define the type of asynchronous messages.

A message has parameters which transfer information from its sender to its receiver. The signature of the message type defines which parameter the message has. The parameters have a call by value semantics. The sender transition binds concrete values to the parameters which can be accessed by the receiver transition. In State Graph the defined messages can be used as raise message-events by a sender transition. A raise message-event is a message-event which is raised when a transition fires. A raise message-event is sent via the associated output delegation port of the State Graph2 class. This port is connected to an input delegation port which itself has a State Graph2 model and a receiver mailbox and a receiver transition.

Parameters

TypeNameDefaultDescription
IntegernIn0
IntegernumberOfMessageIntegers0Number of Integer input connections
IntegernumberOfMessageReals0Number of Real input connections
IntegernumberOfMessageBooleans0Number of Boolean input connections

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInput[nIn]conditionPorttrigger input port for sending messages
Modelica_StateGraph2.Blocks.Interfaces.IntegerVectorInput[numberOfMessageIntegers]u_integersInteger parameters of message
Modelica_StateGraph2.Blocks.Interfaces.BooleanVectorInput[numberOfMessageBooleans]u_booleansBoolean parameters of message
Modelica_StateGraph2.Blocks.Interfaces.RealVectorInput[numberOfMessageReals]u_realsReal parameters of message
RealTimeCoordinationLibrary.Internal.Interfaces.Asynchron.message_output_portmessage_output_portoutput port for sending message