Create and manage model-to-model allocations
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.
Open the Allocation Editor
System Composer toolstrip: Navigate to Modeling > Allocation Editor.
MATLAB® Command Window: Enter
New Allocation Set — Create new allocation set
Create a new allocation set saved as an MLDATX file. Within the allocation set, add allocation scenarios.
Profile Editor — Launch Profile Editor or import profile XML file
To launch the Profile Editor from the Allocation Editor, click Profile Editor , or click the Profile Editor arrow and select Profile Editor. To import the XML file for a saved profile to your current allocation set, click the Profile Editor arrow and select Import .
Add Scenario — Add allocation scenario
Add an allocation scenario in the selected allocation set. Within the allocation scenario, allocate elements between two architecture models.
Synchronize — Synchronize changes of models in allocation set
This button synchronizes any changes that have been made in the source or target
models of the allocation set. To synchronize changes programmatically, see
Filters — Row filter and column filter
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.
systemcomposer.allocation.editor opens the Allocation
Editor from the MATLAB Command Window.
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
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. Stereotype 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.
Introduced in R2020b