systemcomposer.allocation.editor - Open allocation editor - MATLAB (original) (raw)
Open allocation editor
Since R2020b
Syntax
[systemcomposer.allocation.editor](#d126e92697)
[systemcomposer.allocation.editor(allocSet)](#d126e92711)
[systemcomposer.allocation.editor(allocSetName)](#d126e92725)
Description
systemcomposer.allocation.editor
opens the Allocation Editor.
systemcomposer.allocation.editor([allocSet](#mw%5Ff3690c69-c9dd-4b6d-a3f6-7551d6a08f95%5Fsep%5Fmw%5F2aa43e21-d9fc-4e02-9769-d431e582562f))
opens the Allocation Editor and selects the allocation set objectallocSet
.
systemcomposer.allocation.editor([allocSetName](#mw%5F0a119e36-7518-498d-bf3a-f209d1ae2fa5))
opens the Allocation Editor and selects the allocation setallocSetName
.
Examples
Create two new models with one component each.
mSource = systemcomposer.createModel("Source_Model_Allocation"); systemcomposer.openModel("Source_Model_Allocation"); sourceComp = addComponent(get(mSource,"Architecture"),"Source_Component"); mTarget = systemcomposer.createModel("Target_Model_Allocation"); systemcomposer.openModel("Target_Model_Allocation"); targetComp = addComponent(get(mTarget,"Architecture"),"Target_Component");
Create an allocation set named MyNewAllocation
.
allocSet = systemcomposer.allocation.createAllocationSet("MyNewAllocation",... "Source_Model_Allocation","Target_Model_Allocation");
Save the allocation set.
save(allocSet)
Open the Allocation Editor.
systemcomposer.allocation.editor
Input Arguments
Allocation set, specified as a systemcomposer.allocation.AllocationSet object.
Allocation set name, specified as a character vector or string.
Example: systemcomposer.allocation.editor("PhysicalAllocations")
Data Types: char
| string
More About
Term | Definition | Application | More Information |
---|---|---|---|
Allocation | 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. | Create and Manage Allocations InteractivelyCreate and Manage Allocations Programmatically |
Allocation scenario | 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. | Systems Engineering Approach for SoC Applications |
Allocation set | 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. | Establish Traceability Between Architectures and RequirementsAllocate Architectures in Tire Pressure Monitoring System |
Version History
Introduced in R2020b
See Also
Tools
Blocks
Objects
- systemcomposer.allocation.Allocation | systemcomposer.allocation.AllocationScenario | systemcomposer.allocation.AllocationSet
Functions
- systemcomposer.allocation.createAllocationSet | systemcomposer.allocation.load | systemcomposer.allocation.open | close | systemcomposer.allocation.AllocationSet.closeAll | systemcomposer.allocation.AllocationSet.find | save | rebindSourceModel | rebindTargetModel | synchronizeChanges | createScenario | deleteScenario | getScenario | allocate | deallocate | getAllocation | getAllocatedFrom | getAllocatedTo | destroy