systemcomposer.ValueType
说明
ValueType 对象描述 System Composer™ 中的一个值类型。值类型可用作端口接口或数据元素的类型。
创建对象
使用 addValueType 函数为字典添加值类型。
model = systemcomposer.createModel("archModel"); systemcomposer.openModel("archModel"); dictionary = model.InterfaceDictionary; airspeedType = dictionary.addValueType("AirSpeed");
属性
对象函数
moveInterface | 将接口移至另一个数据字典 |
setName | 为值类型、函数参量、接口或元素设置名称 |
setDataType | 设置值类型的数据类型 |
setDimensions | 设置值类型维度 |
setUnits | 设置值类型的单位 |
setComplexity | 设置值类型复杂度 |
setMinimum | 设置值类型的最小值 |
setMaximum | 设置值类型的最大值 |
setDescription | 为数值类型或接口设置说明 |
applyStereotype | 为架构模型元素应用构造型 |
getStereotypes | 获取应用于架构模型元素的构造型 |
removeStereotype | 从模型元素中移除构造型 |
setProperty | 设置与应用于元素的构造型相对应的属性值 |
getProperty | 获取与应用于元素的构造型相对应的属性值 |
getPropertyValue | 获取架构属性值 |
getEvaluatedPropertyValue | 从元素中获取属性的计算值 |
getStereotypeProperties | 获取元素上的构造型属性名称 |
hasStereotype | 查找元素是否已应用构造型 |
hasProperty | 查找元素是否具有属性 |
destroy | 移除模型元素 |
示例
详细信息
版本历史记录
在 R2021b 中推出
另请参阅
函数
addInterface|moveInterface|addPhysicalInterface|removeInterface|createInterface|setName|setInterface|getInterface|getInterfaceNames|addElement|removeElement|getElement|setName|setType|createOwnedType|getSourceElement|getDestinationElement|systemcomposer.createDictionary|systemcomposer.openDictionary|saveToDictionary|isOpen|getFileName|linkDictionary|unlinkDictionary|addReference|removeReference|makeOwnedInterfaceShared|addValueType|createInterface|setName|setDataType|setDimensions|setUnits|setComplexity|setMinimum|setMaximum|setDescription|addServiceInterface|setFunctionPrototype|getFunctionArgument|setAsynchronous|systemcomposer.getSelectedInterfaces|IsAdapterComponent
对象
systemcomposer.interface.DataInterface|systemcomposer.interface.DataElement|systemcomposer.interface.PhysicalDomain|systemcomposer.interface.PhysicalInterface|systemcomposer.interface.PhysicalElement|systemcomposer.interface.Dictionary|systemcomposer.interface.ServiceInterface|systemcomposer.interface.FunctionArgument|systemcomposer.interface.FunctionElement|addServiceInterface|setFunctionPrototype|getFunctionArgument|setAsynchronous





