首页 / design / oaOccModuleScalarInst

oaOccModuleScalarInst

模块: oapy._oa._design 导入: from oapy._oa import _design

概览

oaOccModuleScalarInstoapy 中可用,可通过 _design 模块访问。

本页汇总 oaOccModuleScalarInst 当前在 oapy 中可用的 Python 接口。

详细说明

The oaOccModuleScalarInst class implements a occurence scalar (single-bit) instance。 oaOccScalarInst objects refer to master module and are always in the occurrence domain。

方法总览

状态 Python 调用
obj.getModInst()
obj.getName(name)
obj.getPathName(pathName)
obj.getName(name)
obj.getName(ns, name)
obj.getPathName(pathName)
obj.getPathName(ns, pathName)
_design.oaOccModuleScalarInst.find(occurrence, name)

方法说明

obj.getModInst()

绑定状态: 已绑定

Python 调用: obj.getModInst()

This function returns the corresponding module instance in the module domain。 从 oaOccModuleInst 重新实现。

返回

  • The oaModModuleScalarInst pointer。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccModuleScalarInst
obj.getModInst()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the local name of this scalarInst in the specified name string。 The name is relative to the parent occurrence of this scalarInst。

参数

  • name: The returned instance name。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccModuleScalarInst
obj.getName(name)

obj.getPathName(pathName)

绑定状态: 已绑定

Python 调用: obj.getPathName(pathName)

This function returns the full path name of this scalarInst, relative to the top occurrence in the occurrence hierarchy containing this scalarInst。

参数

  • pathName: The returned path name。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccModuleScalarInst
obj.getPathName(pathName)

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

Python 示例

from oapy._oa import _design

# assume obj is a oaOccModuleScalarInst
obj.getName(name)

obj.getName(ns, name)

绑定状态: 已绑定

Python 调用: obj.getName(ns, name)

Python 示例

from oapy._oa import _design

# assume obj is a oaOccModuleScalarInst
obj.getName(ns, name)

obj.getPathName(pathName)

绑定状态: 已绑定

Python 调用: obj.getPathName(pathName)

Python 示例

from oapy._oa import _design

# assume obj is a oaOccModuleScalarInst
obj.getPathName(pathName)

obj.getPathName(ns, pathName)

绑定状态: 已绑定

Python 调用: obj.getPathName(ns, pathName)

Python 示例

from oapy._oa import _design

# assume obj is a oaOccModuleScalarInst
obj.getPathName(ns, pathName)

_design.oaOccModuleScalarInst.find(occurrence, name)

绑定状态: 已绑定

Python 调用: _design.oaOccModuleScalarInst.find(occurrence, name)

This function searches the specified occurrence looking for a module instance with the specified name。 If name is hierarchical, this function will descend into lower levels of occurrence hierarchy, expanding the hierarchy and binding the master designs as needed。 The module instance is returned if found, otherwise NULL is returned。

返回

  • A pointer to an oaOccModuleScalarInst。

Python 示例

from oapy._oa import _design

_design.oaOccModuleScalarInst.find(occurrence, name)