物理域系统的作曲家
一个PhysicalDomain
对象描述System Composer™中的物理域。物理域可以作为端口上的一个拥有的接口,并键入到物理接口上的一个物理元素。
在端口上使用物理域创建所属接口。
模型= systemcomposer.createModel(“archModel”,真正的);rootArch = get(模型,“架构”);newComponent = addComponent(rootArch,“newComponent”);newPort = addPort(newComponent. newPort = addPort)架构,“newCompPort”,“物理”);port = newComponent.getPort(“newCompPort”);interface = port.createInterface();接口。域=“mechanical.rotational.rotational”
摧毁 |
移除模型元素 |
createInterface
|addPhysicalInterface
|systemcomposer.interface.PhysicalInterface
|systemcomposer.interface.PhysicalElement
|systemcomposer.interface.Dictionary