Manage Profiles - Link and unlink profiles and order stereotypes - MATLAB (original) (raw)

Link and unlink profiles and order stereotypes

Description

Use the Manage Profiles tool to import profiles into the current architecture model, associated data dictionaries, and linked models, or remove profiles that have already been imported.

The imported profiles appear in an expanding list by name under the model or dictionary to which a profile is linked.

To manage the priority order of the stereotypes from all imported profiles, clickManage Stereotype Order. To define and edit profiles, use the Profile Editor tool.

Manage Profiles Tool

Open the Manage Profiles

Examples

Parameters

expand all

Import a profile into the selected architecture model, architecture subsystem, SimulinkĀ® model or subsystem,or data dictionary by navigating to the current directory and choosing a profile with an .xml extension.

Remove the selected profile on the expander list from the model, FMU, or dictionary to which the profile is linked.

Manage the priority order of stereotypes for imported profiles so that when multiple profiles are applied to a model element, the highest priority stereotype will display stereotype-based styling.

For more information, see Change Stereotype Order Using Manage Profiles Tool.

Note

Connector styling is sourced from the highest-priority stereotype that defines style information. Connector stereotypes have the highest priority, followed by port stereotypes and then interface stereotypes. When two connectors with different styling merge, if the styling is incompatible, the resulting connector is displayed in black.

Programmatic Use

expand all

model.applyProfile(profile) links a profile to the model.

model.removeProfile(profile) unlinks a profile from the model.

More About

expand all

A System Composer model is the file that contains architectural information, such as components, ports, connectors, interfaces, and behaviors. Perform operations on a model including extracting root-level architecture, applying profiles, linking interface data dictionaries, or generating instances from model architecture. A System Composer model is stored as an SLX file.

A data dictionary is a repository of data relevant to your model. The Architectural Data section of a data dictionary stores shared definitions used in Simulink and architecture model interfaces, such as port interfaces, data types, and system wide constants. For more information, see What Is a Data Dictionary? You can save local interfaces on a System Composer model to the Architectural Data section of a Simulink data dictionary using the Interface Editor. In addition to the Interface Editor, you can also use the Architectural Data Editor to manage and modify interfaces and value types.

A profile is a package of stereotypes. You can use profiles to create a domain of specialized element types. Author profiles and apply profiles to a model using the Profile Editor. You can store stereotypes for a project in one or several profiles. When you save profiles, they are stored in XML files.

Stereotypes provide a mechanism to extend the core language elements and add domain-specific metadata. Apply stereotypes to core element types. An element can have multiple stereotypes. Stereotypes allow you to style different elements. Stereotypes provide elements with a common set of properties, such as mass, cost, and power.

A property is a field in a stereotype. You can specify property values for each element to which the stereotype is applied. Use properties to store quantitative characteristics, such as weight or speed, that are associated with a model element. Properties can also be descriptive or represent a status. You can view and edit the properties of each element in the architecture model using the Property Inspector. For more information, see Use Property Inspector in System Composer.

A component is a replaceable part of a system that fulfills a clear function in the context of an architecture. A component defines an architectural element, such as a function, another system, hardware, software, or other conceptual entity. A component can also be a subsystem or subfunction. Represented as a block, a component is a part of an architecture model that can be separated into reusable artifacts. Transfer information between components with port interfaces using the Interface Editor, and parameters using the Parameter Editor.

A port is a node on a component or architecture that represents a point of interaction with its environment. A port permits the flow of information to and from other components or systems. Component ports are interaction points on the component to other components. Architecture ports are ports on the boundary of the system, whether the boundary is within a component or the overall architecture model. The root architecture has a boundary defined by its ports.

Connectors are lines that provide connections between ports. Connectors describe how information flows between components or architectures. A connector allows two components to interact without defining the nature of the interaction. Set an interface on a port to define how the components interact.

Version History

Introduced in R2019a