文档帮助中心文档
获取元素上的构造型属性名
propNames = getStereotypeProperties (archElement)
例子
propNames= getStereotypeProperties (archElement)返回元素的指定架构上的构造型属性名数组。
propNames= getStereotypeProperties (archElement)
propNames
archElement
全部折叠
创建一个概要文件,添加一个组件原型,并添加具有默认值的属性。
形象= systemcomposer.profile.Profile.createProfile (“LatencyProfile”);刻板印象= addStereotype(概要文件,“electricalComponent”,“AppliesTo”,“组件”);stereotype.addProperty (“延迟”,“类型”,“双”,“DefaultValue”,“十”);stereotype.addProperty (“质量”,“类型”,“双”,“DefaultValue”,“20”);
使用组件创建模型。
模型= systemcomposer.createModel (“archModel”,真正的);拱= get(模型,“架构”);comp = addComponent(拱门,“组件”);
将概要文件应用到模型,并将原型应用到组件。打开配置文件编辑器。
model.applyProfile (“LatencyProfile”);comp.applyStereotype (“LatencyProfile.electricalComponent”);systemcomposer.profile.editor(概要)
获取组件架构上的构造型属性。
属性= getStereotypeProperties (comp.Architecture)
properties = 1×2 string array "LatencyProfile.electricalComponent. properties "。延迟LatencyProfile.electricalComponent.mass”
模型元素体系结构,指定为systemcomposer.arch.Architecture,systemcomposer.arch.ArchitecturePort,systemcomposer.arch.Connector,systemcomposer.arch.PhysicalConnector,systemcomposer.interface.DataInterface,systemcomposer。ValueType,或systemcomposer.interface.PhysicalInterface对象。你也可以用the体系结构财产的systemcomposer.arch.Component对象或ArchitecturePort财产的systemcomposer.arch.ComponentPort对象。
systemcomposer.arch.Architecture
systemcomposer.arch.ArchitecturePort
systemcomposer.arch.Connector
systemcomposer.arch.PhysicalConnector
systemcomposer.interface.DataInterface
systemcomposer。ValueType
systemcomposer.interface.PhysicalInterface
体系结构
systemcomposer.arch.Component
ArchitecturePort
systemcomposer.arch.ComponentPort
例子:拱
拱
例子:comp.Architecture
comp.Architecture
例子:康涅狄格州
康涅狄格州
例子:compPort。ArchitecturePort
compPort。ArchitecturePort
属性名,返回为字符串数组,每个都在表单中“<文件>。<刻板印象>。< >属性”.
“<文件>。<刻板印象>。< >属性”
数据类型:字符串
字符串
不同类型的体系结构描述了系统的不同方面:
功能体系结构描述系统中的数据流。
逻辑架构描述系统的预期操作。
物理架构描述系统中的平台或硬件。
对模型进行操作:
提取模型中包含的根级体系结构。
应用概要文件。
链接接口数据字典。
从模型体系结构生成实例。
System Composer模型存储为SLX文件。
有不同类型的端口:
组件端口是组件与其他组件之间的交互点。
架构的港口是系统边界上的端口,无论边界是在组件中还是在整个体系结构模型中。
设置属性
用原型添加属性
设置分析属性
定义概要文件和原型
使用原型和概要文件
物理连接器可以表示特定物理域的无方向守恒连接。连接器还可以表示物理信号。
物理接口定义了流经物理端口的信息类型。一个接口可以分配给多个端口。一个物理接口是一个复合接口,相当于一个万博1manbetx仿真软件。ConnectionBus对象,该对象指定至少一个万博1manbetx仿真软件。ConnectionElement对象。
万博1manbetx仿真软件。ConnectionBus
万博1manbetx仿真软件。ConnectionElement
物理元素描述物理接口的分解。一个物理元素等价于A万博1manbetx仿真软件。ConnectionElement对象。
类型
setProperty|getProperty|getEvaluatedPropertyValue|getPropertyValue
setProperty
getProperty
getEvaluatedPropertyValue
getPropertyValue
你点击一个链接对应于这个MATLAB命令:
通过在MATLAB命令窗口中输入命令来运行命令。Web浏览器不支持MATLAB命令。万博1manbetx
选择一个网站,在那里获得翻译的内容,并看到当地的活动和优惠。根据您的位置,我们建议您选择:.
你也可以从以下列表中选择一个网站:
选择中国网站(中文或英文)以获得最佳网站性能。其他MathWorks国家站点没有针对您所在位置的访问进行优化。
与当地办事处联系
得到审判现在