文档帮助中心文档
获取应用于架构模型元素的原型
刻板印象= getStereotypes(元素)
例子
刻板印象= getstereotypes(元素)获取已应用于架构模型的元素的完全限定的刻板印象名称数组。
刻板印象= getstereotypes(元素)
刻板印象
元素
全部收缩
使用组件创建模型。
模型= systemcomposer.createModel ('archmodel',真正的);拱= get(模型,“架构”);comp = addComponent(拱门,“组件”);
创建具有刻板印象的配置文件并将配置文件应用于模型。
profile = systemcomposer.profile.profile.createProfile('latencyprofile');latencybase = profile.addstereotype('latencybase');latencybase.addProperty (“延迟”,'类型','双倍的');latencybase.addProperty (“dataRate”,'类型','双倍的','默认值',“十”);model.applyprofile('latencyprofile');
将刻板型应用于组件,打开配置文件编辑器,并在组件上获取刻板印象。
comp.applyStereotype ('latencyprofile.latencybase');systemcomposer.profile.editor(profile) stereotypes = getStereotypes(comp)
stereotypes = 1×1 cell array {'LatencyProfile. txt ';LatencyBase '}
模型元素,指定为asystemcomposer.arch.Architecture,systemcomposer.arch.Component,systemcomposer.arch.VariantComponent,systemcomposer.arch.ComponentPort,systemcomposer.arch.ArchitecturePort,systemcomposer.arch.Connector,systemcomposer.arch.physicalConnector.,systemcomposer.Interface.datainterface.,systemcomposer。ValueType,或systemcomposer.interface.PhysicalInterface对象。
systemcomposer.arch.Architecture
systemcomposer.arch.Component
systemcomposer.arch.VariantComponent
systemcomposer.arch.ComponentPort
systemcomposer.arch.ArchitecturePort
systemcomposer.arch.Connector
systemcomposer.arch.physicalConnector.
systemcomposer.Interface.datainterface.
systemcomposer。ValueType
systemcomposer.interface.PhysicalInterface
原型的列表,作为表单中字符向量的单元格数组返回'。'.
'。'
数据类型:char
char
不同类型的体系结构描述了系统的不同方面:
功能架构描述系统中的数据流。
逻辑架构描述系统的预期操作。
物理架构描述系统中的平台或硬件。
对模型进行操作:
提取模型中包含的根级体系结构。
应用概要文件。
链接接口数据字典。
从模型架构生成实例。
System Composer模型存储为SLX文件。
有不同类型的端口:
组件端口是组件与其他组件之间的交互点。
架构的港口是系统边界上的端口,无论边界是在组件中还是在整个体系结构模型中。
设置属性
用原型添加属性
设置分析属性
定义配置文件和刻板印象
使用原型和概要文件
System Composer模型上的本地接口可以使用接口编辑器保存在接口数据字典中。
接口字典可以在需要使用一组给定接口、元素和值类型的模型之间重用。数据字典存储在单独的SLDD文件中。
使用数据字典管理接口
参考数据字典
数据接口分解为数据元素:
连接器或线束上的针或线。
跨公共汽车传输的消息。
组件之间共享的数据结构。
创建接口
将接口分配给端口
使用适配器,您可以在“接口适配器”对话框上执行函数:
创建和编辑输入和输出接口之间的映射。
应用接口转换UnitDelay打破一个代数循环。
UnitDelay
应用接口转换衡量标准为参考模型调和不同的样本时间率。
衡量标准
接口适配器
适配器
物理连接器可以表示特定物理域的无方向守恒连接。连接器还可以表示物理信号。
物理接口定义了流经物理端口的信息类型。一个接口可以分配给多个端口。一个物理接口是一个复合接口,相当于一个万博1manbetx仿真软件。ConnectionBus对象,该对象指定至少一个万博1manbetxsimulink.connectionElement.对象。
万博1manbetx仿真软件。ConnectionBus
万博1manbetxsimulink.connectionElement.
物理元素描述物理接口的分解。一个物理元素等价于A万博1manbetxsimulink.connectionElement.对象。
类型
applyStereotype|removeStereotype|batchApplyStereotype|getstereotypeproperties.
applyStereotype
removeStereotype
batchApplyStereotype
getstereotypeproperties.
您单击了与此MATLAB命令对应的链接:
在MATLAB命令窗口中输入它来运行命令。Web浏览器不支持MATLAB命令。万博1manbetx
选择一个网站,在那里获得翻译的内容,并看到当地的活动和优惠。根据您的位置,我们建议您选择:.
您还可以从以下列表中选择一个网站:
选择中国网站(中文或英文)以获得最佳网站性能。其他MathWorks国家站点没有针对您所在位置的访问进行优化。
联系您当地的办公室
立即获得试用