首页 / design / oaOccAssignment

oaOccAssignment

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

概览

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

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

详细说明

In the occurrence domain it is not possible directly create any connectDefs or assignments。 The occurrence domain versions of these classes are automatically created by OpenAccess as a reflection of objects created in the module or block domain。 For further information, see oaConnectDef (and its derived classes) and oaAssignmentDef in the block domain and oaModConnectDef (and its derived classes) and oaModAssignment in the module domain。 The oaOccAssignment class can be observed by deriving from oaObserver

方法总览

状态 Python 调用
obj.getName(name)
obj.getInst()
_design.oaOccAssignment.find(inst, name)

方法说明

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the name of this assignment in the given name string。 This is the name that is searched for when resolving the connections for the oaOccNetConnectDef and oaOccTermConnectDef objects。

Python 示例

from oapy._oa import _design

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

obj.getInst()

绑定状态: 已绑定

Python 调用: obj.getInst()

This function returns a pointer to the instance with which this assignment is associated。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccAssignment
obj.getInst()

_design.oaOccAssignment.find(inst, name)

绑定状态: 已绑定

Python 调用: _design.oaOccAssignment.find(inst, name)

This function searches the specified instance for an assignment with the specified lookup name。

返回

  • A pointer to the assignment, if found。

Python 示例

from oapy._oa import _design

_design.oaOccAssignment.find(inst, name)