createViewArchitecture

Description

view = createViewArchitecture(obj,name,Name,Value) creates an empty view with the given name.

view = createViewArchitecture(obj,name,constraint,Name,Value) creates a view with the given name where the contents are populated by finding all components in the model that satisfy the provided query.

example

view = createViewArchitecture(obj,name,constraint,groupBy,Name,Value) creates a view with the given name where the contents are populated by finding all components in the model that satisfy the provided query. The selected components are then grouped by the fully qualified property name.

Examples

collapse all

scKeylessEntrySystem;
m = systemcomposer.openModel('KeylessEntryArchitecture');

import systemcomposer.query.*;
myQuery = HasStereotype(IsStereotypeDerivedFrom('AutoProfile.SoftwareComponent'));

view = m.createViewArchitecture('Software Review Status',myQuery,...
'AutoProfile.BaseComponent.ReviewStatus','Color','red');

m.openViews;

Input Arguments

collapse all

Model to use to create a view, specified as a systemcomposer.arch.Model object.

Name of the view, specified as a character vector.

Data Types: char

Query, specified as a systemcomposer.query.Constraint object representing specific conditions. A constraint can contain a sub-constraint that can be joined together with another constraint using AND or OR. A constraint can also be negated using NOT.

Query Objects and Conditions for Constraints

Query ObjectCondition
PropertyA non-evaluated value for the given property or stereotype property.
PropertyValueAn evaluated property value from a System Composer object or a stereotype property.
HasPortA component has a port that satisfies the given sub-constraint.
HasInterfaceA port has an interface that satisfies the given sub-constraint.
HasInterfaceElementAn interface has an interface element that satisfies the given sub-constraint.
HasStereotypeAn architecture element has a stereotype that satisfies the given sub-constraint.
IsInRangeA property value is within the given range.
AnyComponentAn element is a component and not a port or connector.
IsStereotypeDerivedFrom A stereotype is derived from the given stereotype.

User-defined property, specified as an enumeration by which to group components.

Data Types: enum

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: createViewArchitecture(model,'Software Review Status',myQuery,'AutoProfile.BaseComponent.ReviewStatus','Color','red','IncludeReferenceModels',true)

Option to search for reference architectures, or to not include referenced architectures, specified as the comma-separated pair consisting of 'IncludeReferenceModels' and a logical false to not include referenced architectures and true to search for referenced architectures.

Example: 'IncludeReferenceModels',true

Data Types: logical

Color of view, specified as the comma-separated pair consisting of 'Color' and a character array that contains the name of the color or an RGB hexadecimal value.

Example: 'Color','blue'

Example: 'Color,'#FF00FF'

Data Types: char

Output Arguments

collapse all

Model architecture view created based on the specified query and properties, specified as a systemcomposer.view.ViewArchitecture object.

Introduced in R2019b