Main Content

Architecture Views Gallery

Create and manage architecture views and sequence diagrams

Since R2019b

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.

Architecture Views Gallery Tool

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 a systemcomposer.arch.Model object as the input argument.

Parameters

expand all

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 all views, sequence diagrams, and the architecture model.

Delete the currently selected view or sequence diagram.

Refresh the currently selected view with changes in the composition and rerun the corresponding filter, if it exists.

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 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 the selected components in a view.

Ungroup the selected components in a view.

Pivot to other diagrams in which selected component or lifeline appears. Use the drop-down list to select the view diagram or sequence diagram to which to pivot. For more information, see Pivot Between Lifelines and Components in Views Gallery.

Focus on the selected component to make it the new root of the diagram in the view.

Modify the number of levels of hierarchy to display. Deep includes more levels and Shallow includes fewer levels.

Export the currently selected diagram as an image. View diagrams can be saved as PDF files. Sequence diagrams can be saved as PDF files or image files.

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.

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 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.

Specify a different associated element in the architecture model for the selected elements in the sequence diagram.

Create elements in the architecture model for each of the selected inconsistent elements in the sequence diagram.

Update the selected inconsistent elements in the sequence diagram so the sequence diagram is consistent with the architecture model.

Run model simulation and verify that the model simulation results match the interactions within the sequence diagrams.

Pause model simulation and sequence diagram simulation.

Stop model simulation and sequence diagram simulation.

Continue model simulation until the end and verify that the model simulation results match the interactions within the sequence diagrams.

Continue until next message is hit and verify that the model simulation results match the interactions within the sequence diagrams.

Clear simulation results and remove green check marks or red warning marks on the sequence diagram.

Programmatic Use

expand all

openViews(model) opens the Architecture Views Gallery from the MATLAB Command Window.

More About

expand all

Version History

Introduced in R2019b