oaOccModuleInst
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaOccModuleInst 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaOccModuleInst 当前在 oapy 中可用的 Python 接口。
详细说明
The oaOccModuleInst class implements a occurence of an instance of a master module。 oaOccModuleInst objects refer to a master module and are always in the occurrence domain。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getMaster() |
| ✅ | obj.getHeader() |
| ✅ | obj.getModInst() |
方法说明
obj.getMaster()
绑定状态: 已绑定
Python 调用: obj.getMaster()
This function attempts to return the master module associated with this instance。 If the instance is not previously bound, it attempts to open the master and bind this instance。 If the instance cannot be bound, NULL is returned。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccModuleInst
obj.getMaster()
obj.getHeader()
绑定状态: 已绑定
Python 调用: obj.getHeader()
This function returns the instHeader associated with this instance。 The module instHeader is a collection of the attributes that are common to all instances of a particular module master。
返回
- The pointer to the instance header。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccModuleInst
obj.getHeader()
obj.getModInst()
绑定状态: 已绑定
Python 调用: obj.getModInst()
This function returns the corresponding module instance in the module domain。 从 oaOccInst 重新实现。 在 oaOccModuleScalarInst、oaOccModuleVectorInst 和 oaOccModuleVectorInstBit 中重新实现。
返回
- The oaModModuleInst pointer。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccModuleInst
obj.getModInst()