systemcomposer.interaction.Lifeline
Description
A Lifeline
object represents a participant in an interaction. A
lifeline sends and receives messages between other participants. On the sequence diagram
representing the interaction, a lifeline is shown as a vertical line with a header at the top
containing the name of the lifeline. A lifeline corresponds to a component in the architecture
model.
Lifelines can have at most one parent lifeline, and zero or more children lifelines. Children are represented in the sequence diagram as vertical lines with headers that are drawn underneath the parent lifeline.
Creation
Access Lifeline
objects via the RootFragment
property of the corresponding systemcomposer.interaction.Interaction
object. Access the
CoveredLifelines
property of the root fragment to inspect all the
lifelines.
Properties
Examples
More About
Version History
Introduced in R2024a
See Also
Tools
Functions
openViews
|sim
|addInteraction
|getInteraction
|getInteractions
|open
|addLifeline
|addFragment
|addOperand
|addMessage
|addAnnotation
|findLifeline
|findElement
|move
|move
|move
|destroy
|next
|current
|reset
Objects
systemcomposer.arch.Model
|systemcomposer.interaction.Interaction
|systemcomposer.interaction.Iterator
|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