The structural hierarchy of a system typically differs from the hierarchy of the system's functional requirements. With architecture views, you can view a system based on different hierarchies.
A view shows a customizable subset of elements in a model. Views can be filtered based on stereotypes or names of components, ports, and interfaces, along with the name, type, or units of an interface element. Construct views by pulling in elements manually. Views create a simplified way to work with complex architectures by focusing on certain parts of the architecture design.
You can use different types of views to represent the system:
Operational views demonstrate how a system will be used and should be well integrated with requirements analysis.
Functional views focus on what the system must do to operate.
Physical views show how the system is constructed and configured.
A viewpoint represents a stakeholder perspective that specifies the contents of the view.
For example, you can author a system using the requirements. This view allows you to better understand what components you need to satisfy your requirements while not necessarily focusing on the structure.
You can create an architecture view interactively with automation or construct them
manually. This example uses the architecture model for a keyless entry system,
scKeylessEntrySystem, to create views.
In the MATLAB® Command Window, enter
architecture model opens in the Simulink® Editor.
In the Views section, click Architecture Views to open the Architecture Views Gallery.
Click New View to create a new view.
In View Properties on the right pane, in the
Name box, enter a name for this view, for example,
Software Component Review. Choose a
Color and enter a Description, if
In the View Configurations pane, select Filter to add a new form-based criterion to the filter.
Select Add Clause. From the Select
Components. From the
Where drop-down, select
Stereotype. In the text box, select
AutoProfile.SoftwareComponent from the drop-down.
Click Apply Query. An architecture view is created using
the query from the Filter box. The view is filtered to
select all components with the
applied to them.
In the View Configurations pane, select Grouping.
To choose a property enumeration for grouping, click Add Group By.
AutoProfile.BaseComponent.ReviewStatus from the
Click Add Group By again.
from the drop-down.
Click Apply Query.
To add more components to the view, drag and drop components from
Model Components. Drag and drop the
System component to the
Review view. Alternatively, use the Add
button on the toolstrip. You can also use the keyboard shortcut
Ctrl+I to add component instantiations to your view
when they are selected.
Interactively adding and removing elements from your view with an associated query is not supported. You will receive a warning message: Remove associated query? Press OK to proceed.
You can use the keyboard shortcut Delete to delete components from the view.
Lighting System has been added to the
From the Requirement menu, select Requirements
Manager. The Requirement Links tab appears
at the bottom of the
Software Component Review view.
Lighting Controller component and see the linked
Automatically turn off headlights.
Select the requirement
Automatically turn off headlights to
open the Requirement Editor to view or modify requirement links.
In the Architecture Views Gallery, from the Requirement menu, select Open Requirements Editor if the Requirement Editor is not open already.
Should unlock door requirement.
Return to the Architecture Views Gallery. In the
Review view select the
From the Requirement menu, select Link
to selected requirement. The new requirement
unlock door is added.
To remove a requirement link, select and confirm deletion.