systemcomposer.allocation.Allocation
源元素和目标元素之间的分配
说明
Allocation
对象定义了源元素和目标元素之间的分配。
相关对象包括:
创建对象
使用 allocate
函数在默认方案 Scenario 1
中的四个元素之间创建两个分配。
defaultScenario = allocSet.getScenario("Scenario 1");
defaultScenario.allocate(sourceElement1,sourceElement2);
defaultScenario.allocate(sourceElement3,sourceElement4);
属性
对象函数
applyStereotype | 为架构模型元素应用构造型 |
getStereotypes | 获取应用于架构模型元素的构造型 |
removeStereotype | 从模型元素中移除构造型 |
setProperty | 设置与应用于元素的构造型相对应的属性值 |
getProperty | 获取与应用于元素的构造型相对应的属性值 |
getPropertyValue | 获取架构属性值 |
getEvaluatedPropertyValue | 从元素中获取属性的计算值 |
getStereotypeProperties | 获取元素上的构造型属性名称 |
hasStereotype | 查找元素是否已应用构造型 |
hasProperty | 查找元素是否具有属性 |
destroy | 移除模型元素 |
示例
详细信息
版本历史记录
在 R2020b 中推出
另请参阅
工具
模块
对象
函数
systemcomposer.allocation.createAllocationSet
|systemcomposer.allocation.load
|systemcomposer.allocation.open
|systemcomposer.allocation.editor
|close
|systemcomposer.allocation.AllocationSet.closeAll
|systemcomposer.allocation.AllocationSet.find
|save
|rebindSourceModel
|rebindTargetModel
|synchronizeChanges
|createScenario
|deleteScenario
|getScenario
|allocate
|deallocate
|getAllocation
|getAllocatedFrom
|getAllocatedTo
|destroy