Main Content
addFragment
Description
adds a fragment of type fragment
= addFragment(operand
,fragmentType
) fragmentType
to the specified
operand
.
specifies options using one or more name-value arguments in addition to the input arguments
in previous syntaxes. For example, to add the fragment
= addFragment(___,Name=Value
)fragment
after an
existing fragment, set After
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
|addOperand
|addMessage
|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