oaOccModuleInstHeader
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaOccModuleInstHeader 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaOccModuleInstHeader 当前在 oapy 中可用的 Python 接口。
详细说明
The oaOccModuleInstHeader class implements an object that contains information common to all the logical instances of a particular master module in a given parent occurrence。 oaOccModuleInstHeader objects is in occurrence domain and is scoped within the owner occurrence。 The oaOccModuleInstHeader class can be observed by deriving from oaObserver
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getMaster() |
| ✅ | obj.getMasterOccurrence(expand=true) |
| ✅ | obj.getName(name) |
| ✅ | obj.getName(ns, name) |
| ✅ | obj.isBound() |
| ✅ | obj.getModModuleInstHeader() |
| ✅ | obj.getInsts(filterFlags=oacInstIterNotImplicit) |
方法说明
obj.getMaster()
绑定状态: 已绑定
Python 调用: obj.getMaster()
This function attempts to return the master module associated with this module instHeader。 If the instHeader is bound, the master module is returned。 Otherwise, NULL is returned。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccModuleInstHeader
obj.getMaster()
obj.getMasterOccurrence(expand=true)
绑定状态: 已绑定
Python 调用: obj.getMasterOccurrence(expand=true)
This function attempts to return the occurrence master associated with this module instHeader。 If expand is true and the instHeader cannot be bound, NULL is returned。
参数
expand: Specifies whether to expand the occurrence hierarchy to include the master occurrence for this instHeader, if it has not yet been expanded in the current session。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccModuleInstHeader
obj.getMasterOccurrence(expand=true)
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
This function returns the module name referenced by this instHeader in the specified nameSpace in the specified name string。
参数
ns: The namespace used to map the name。name: The returned name string。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccModuleInstHeader
obj.getName(name)
obj.getName(ns, name)
绑定状态: 已绑定
Python 调用: obj.getName(ns, name)
This function returns the module name referenced by this instHeader in the specified name argument。
参数
name: The returned name as an oaScalarName。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccModuleInstHeader
obj.getName(ns, name)
obj.isBound()
绑定状态: 已绑定
Python 调用: obj.isBound()
This function returns a boolean value that indicates if this instHeader is bound to its master module。 A bound master means the master is read in and the linkage from the instHeader is established by traversing from an instance to that master。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccModuleInstHeader
obj.isBound()
obj.getModModuleInstHeader()
绑定状态: 已绑定
Python 调用: obj.getModModuleInstHeader()
This function returns the module domain object referenced by this occurrence instHeader。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccModuleInstHeader
obj.getModModuleInstHeader()
obj.getInsts(filterFlags=oacInstIterNotImplicit)
绑定状态: 已绑定
Python 调用: obj.getInsts(filterFlags=oacInstIterNotImplicit)
This function returns a collection of instances associated with this instHeader。 The filter flag bits are defined below and may be logically OR'd together to refine the contents of the collection。
参数
filterFlags: Specifies what the collection contains。 The bit flags are defined as follows: oacInstIterSingleBit: the collection contains single-bit instances oacInstIterNotImplicit: the collection will not contain any implicitly created instances。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccModuleInstHeader
obj.getInsts(filterFlags=oacInstIterNotImplicit)