Main Content

Architecture Views Gallery

Create and manage views and sequence diagrams

Since R2019b

Description

The Architecture Views Gallery allows you to create views and author sequence diagrams.

Use the View Configurations options to specify filters for views, and to specify grouping criteria. Click and drag components from the Model Components browser to add or remove components from your view. Select views from the View Browser and use the View 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 and sequence diagrams 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

View

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.

Group ports connected to a common set of components to simplify your diagram. For more information, see Group Ports in Component Diagram Views.

Launch the Interface Editor tool docked in the Architecture Views Gallery tool.

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.

Add component filters to your view. Add Component Filter allows you to select a query for the view filter. Select All Components selects all components in your model to be included in the view. Add Custom Component Filter shows a text box to manually enter a custom query using the systemcomposer.query.Constraint objects. Clear All Component Filters clears your component filters.

Add port filters to your view. Add Port Filter allows you to select a query for the view filter. Exclude All Ports hides all ports in the view. Hide Unconnected Ports hides unconnected ports in the view. Hide Connectors hides connectors in the view. Add Custom Port Filter shows a text box to manually enter a custom query using the systemcomposer.query.Constraint objects. Clear All Port Filters clears your port filters.

Applies all new changes to filters to your view.

Reverts all new changes to filters from your view.

Condition for applying filtering changes to view instantaneously. If enabled, every new filter change you make is auto-applied to your view in real time.

Sequence Diagram

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