Main Content

createViewArchitecture

(Removed) Create view

The createViewArchitecture function has been removed. You can create a view using the createView function. For further details, see Compatibility Considerations.

Description

view = createViewArchitecture(object,name) creates an empty view with the given name and default color 'blue'.

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

view = createViewArchitecture(object,name,constraint,groupBy) 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.

example

view = createViewArchitecture(___,Name,Value) creates a view with additional options.

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

Whether to search for reference architectures, or to not include referenced architectures, specified as the comma-separated pair consisting of 'IncludeReferenceModels' and a logical 0 (false) to not include referenced architectures and 1 (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, returned as a systemcomposer.view.ViewArchitecture object.

Compatibility Considerations

expand all

Errors starting in R2021a

Introduced in R2019b