Main Content
addMessage
Syntax
Description
adds a message between lifelines message
= addMessage(operand
,sourceLifeline
,sourcePort
,destLifeline
,destPort
,label
)sourceLifeline
and
destinationLifeline
within the operand
operand,
where sourcePort
and destPort
are the ports on the
corresponding components. The message
message is also assigned the
label
message label.
specifies options using one or more name-value arguments in addition to the input arguments
in previous syntaxes. For example, to add the message
= addMessage(___,After=existingElement
)fragment
after an
existing fragment, set existingElement
to a valid fragment
object.
Examples
Input Arguments
Output Arguments
More About
Version History
Introduced in R2024b
See Also
Tools
Functions
openViews
|sim
|addInteraction
|getInteraction
|getInteractions
|open
|addLifeline
|addFragment
|addOperand
|addAnnotation
|findLifeline
|findElement
|move
|move
|move
|destroy
|next
|current
|reset
Objects
systemcomposer.arch.Model
|systemcomposer.interaction.Interaction
|systemcomposer.interaction.Iterator
|systemcomposer.interaction.Lifeline
|systemcomposer.interaction.MessageEvent
|systemcomposer.interaction.FormalGate
|systemcomposer.interaction.Message
|systemcomposer.interaction.Fragment
|systemcomposer.interaction.RootFragment
|systemcomposer.interaction.AltFragment
|systemcomposer.interaction.OptFragment
|systemcomposer.interaction.LoopFragment
|systemcomposer.interaction.SeqFragment
|systemcomposer.interaction.StrictFragment
|systemcomposer.interaction.ParFragment
|systemcomposer.interaction.Operand
|systemcomposer.interaction.Annotation
|Simulink.SimulationInput
|Simulink.SimulationOutput
Topics
- Overview of System Composer API
- Describe System Behavior Using Sequence Diagrams
- Pivot Between Lifelines and Components in Views Gallery
- Compose Architectures Visually
- Implement Component Behavior Using Simulink
- Implement Component Behavior Using Stateflow Charts
- Implement Component Behavior Using Simscape