Allocation Editor - Create and manage model-to-model allocations - MATLAB (original) (raw)

Create and manage model-to-model allocations

Since R2020b

Description

Use the Allocation Editor in System Composer™ to establish traceable and directed relationships between architectural elements. Allocate components, ports, and connectors in a source model to architectural elements in a target model.

You can use allocations to establish relationships from software components to hardware components and to indicate deployment strategies. Allocate different instances of components, ports, and connectors and use allocations to perform various analyses, for example, resource-based allocation analysis.

Allocation Editor Tool

Examples

Parameters

expand all

Create a new allocation set saved as an MLDATX file. Within the allocation set, add allocation scenarios.

Add an allocation scenario in the selected allocation set. Within the allocation scenario, allocate elements between two architecture models.

This button synchronizes any changes that have been made in the source or target models of the allocation set. To synchronize changes programmatically, see synchronizeChanges.

Choose a row filter and a column filter. Filter all allocation scenarios by a combination of the following options:

You can also filter by one or more stereotypes.

Select Clear All Filters to clear every filter,Clear Row Filters to clear row filters, or Clear Column Filters to clear column filters.

Programmatic Use

expand all

systemcomposer.allocation.editor opens the Allocation Editor from the MATLAB Command Window.

More About

expand all

An allocation establishes a directed relationship from architectural elements — components, ports, and connectors — in one model to architectural elements in another model. Resource-based allocation allows you to allocate functional architectural elements to logical architectural elements and logical architectural elements to physical architectural elements.

An allocation scenario contains a set of allocations between a source and a target model. Allocate between model elements in an allocation scenario. The default allocation scenario is called Scenario 1.

An allocation set consists of one or more allocation scenarios that describe various allocations between a source and a target model. Create an allocation set with allocation scenarios in the Allocation Editor. Allocation sets are saved as MLDATX files.

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.

Version History

Introduced in R2020b