Architecture Views Gallery
Create and manage architecture views and sequence diagrams
Description
The Architecture Views Gallery allows you to create filtered and freeform architecture views and author sequence diagrams.
Use the View Configurations options to specify component and port filters for views, and to specify grouping criteria. Click and drag components from the Model Components browser to specify the contents of a freeform view. Select views from the View Browser and use the Component Properties options to specify a name, color, and description for a view.
Switch between these types of view diagrams:
Component Diagram — Display components, ports, and connectors based on how the model is structured.
Component Hierarchy — Display components in tree form with parents above children. In a component hierarchy view, each referenced model is represented as many times as it is used.
Architecture Hierarchy — Display unique component architecture types and their relationships using composition connections. In an architecture hierarchy view, each referenced model is represented only once.
Class Diagram — Display unique architecture types of the software components optionally with software methods and properties, only available for software architecture models.
You can also link and edit requirements for views through the Architecture Views Gallery.
To create a new sequence diagram, click New > Sequence Diagram. Select existing sequence diagrams from the View Browser and use the Sequence Diagram Properties options to specify a name for the sequence diagram. To add a lifeline, click and drag from the Model Components browser. Alternatively, select Component > Add Lifeline from the menu and click the down arrow to select a component to be represented by the lifeline. Click and drag from the vertical dotted lines coming down from one lifeline to another to author a message that represents a connection between two ports. To confirm the consistency of the sequence diagram, click Check Consistency. Then, either push changes to the architecture by clicking Create in Architecture, or pull changes in from the architecture to the sequence diagram by clicking Repair.
Open the Architecture Views Gallery
System Composer™ toolstrip: Navigate to Modeling > Architecture Views.
System Composer toolstrip: Navigate to Modeling > Sequence Diagram.
MATLAB® Command Window: Enter
openViews
with asystemcomposer.arch.Model
object as the input argument.
Examples
Parameters
New
— Create new view or sequence diagram
button
Create a new view by default by clicking New, or click the drop-down arrow to choose New > View. Create a new sequence diagram by selecting New > Sequence Diagram.
Save
— Save views, sequence diagrams, and model
button
Save all views, sequence diagrams, and the architecture model.
Delete
— Delete currently selected diagram
button
Delete the currently selected view or sequence diagram.
Print
— Print sequence diagram
button
Print the currently selected sequence diagram to a file.
Run Query
— Refresh currently selected view
button
Refresh the currently selected view with changes in the composition and rerun the corresponding filter, if it exists.
Add
— Add selected component to view
button
Add the selected component in the Model Components browser to the current view diagram.
If the view is a filtered view, a prompt appears to convert the filtered view to a freeform view.
Remove
— Remove selected component from view
button
Remove a selected component in a view from the current view diagram.
If the view is a filtered view, a prompt appears to convert the filtered view to a freeform view.
Group
— Group selected components in view
button
Group the selected components in a view.
Ungroup
— Ungroup selected components in view
button
Ungroup the selected components in a view.
Pivot
— Pivot to other views selected component appears in
button
Pivot to other views in which the selected component appears. Select the view to pivot to using the drop-down list.
Display Depth
— Modify number of levels of hierarchy to display
Deep (default) | Shallow
Modify the number of levels of hierarchy to display. Deep includes more levels and Shallow includes fewer levels.
Add Lifeline
— Insert new lifeline into sequence diagram
button
Create a new lifeline after the selected lifeline by default by clicking Add Lifeline, or click the drop-down arrow to choose Add Lifeline > Insert After. Create a new lifeline before the selected lifeline by selecting Add Lifeline > Insert Before. Create a new lifeline nested under the selected lifeline by selecting Add Lifeline > Add Child.
Add Operand
— Insert new operand into sequence diagram
button
Create a new operand after the selected operand by default by clicking Add Operand, or click the drop-down arrow to choose Add Operand > Insert After. Create a new operand before the selected operand by selecting Add Operand > Insert Before.
Check Consistency
— Check whether elements in sequence diagram are consistent with architecture model
button
Check that all the elements in the current sequence diagram are consistent with the architecture model. If any of the elements in the sequence diagram are inconsistent, clicking Check Consistency highlights those elements in yellow.
Architecture Element
— Specify different associated element in architecture model for selected elements in sequence diagram
component | port
Specify a different associated element in the architecture model for the selected elements in the sequence diagram.
Create in Architecture
— Create elements in architecture model
button
Create elements in the architecture model for each of the selected inconsistent elements in the sequence diagram.
Repair
— Update selected elements so sequence diagram is consistent with architecture model
button
Update the selected inconsistent elements in the sequence diagram so the sequence diagram is consistent with the architecture model.