systemcomposer.interface.FunctionArgument
说明
一个 FunctionArgument 对象描述了函数元素 systemcomposer.interface.FunctionElement 中一个参量的属性。
创建对象
使用 setFunctionPrototype 函数设置函数原型,然后使用 getFunctionArgument 函数获取函数参量。
setFunctionPrototype(element,"y=f0(u)") argument = getFunctionArgument(functionElement,"y")
属性
对象函数
setName | 为值类型、函数参量、接口或元素设置名称 |
setType | 为数据元素或函数参量设置共享类型 |
setDimensions | 设置值类型维度 |
setUnits | 设置值类型的单位 |
setComplexity | 设置值类型复杂度 |
setMinimum | 设置值类型的最小值 |
setMaximum | 设置值类型的最大值 |
setDescription | 为数值类型或接口设置说明 |
createOwnedType | 在数据元素或函数参量上创建专属值类型 |
destroy | 移除模型元素 |
示例
详细信息
版本历史记录
在 R2022a 中推出
另请参阅
函数
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.ValueType|systemcomposer.interface.DataInterface|systemcomposer.interface.DataElement|systemcomposer.interface.PhysicalDomain|systemcomposer.interface.PhysicalInterface|systemcomposer.interface.PhysicalElement|systemcomposer.interface.Dictionary|systemcomposer.interface.ServiceInterface|systemcomposer.interface.FunctionElement|addServiceInterface|setFunctionPrototype|getFunctionArgument|setAsynchronous