oaModAssignment
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaModAssignment 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaModAssignment 当前在 oapy 中可用的 Python 接口。
详细说明
The oaModAssignment class is the base class for all types of connection assignments。 The oaModAssignment objects specify the overriding assignments for the connection definitions specified in corresponding oaModConnectDef objects。 Together, these objects allow you to specify how nets are to be connected to by name in a design hierarchy。 See oaModNetConnectDef and oaModTermConnectDef for information on the specific type of connection definition。 See oaModAssignValue and oaModAssignAssignment for information on the specific type of connection assignment。 The oaModAssignment class can be observed by deriving from oaObserver
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.destroy() |
| ✅ | obj.getName(name) |
| ✅ | obj.getInst() |
| ✅ | obj.setName(name) |
| ✅ | obj.setInst(inst) |
| ✅ | _design.oaModAssignment.find(inst, name) |
方法说明
obj.destroy()
绑定状态: 已绑定
Python 调用: obj.destroy()
This function destroys this assignment, removing it from the database。
Python 示例
from oapy._oa import _design
# assume obj is a oaModAssignment
obj.destroy()
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 oaModNetConnectDef and oaModTermConnectDef objects。
Python 示例
from oapy._oa import _design
# assume obj is a oaModAssignment
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 oaModAssignment
obj.getInst()
obj.setName(name)
绑定状态: 已绑定
Python 调用: obj.setName(name)
This function changes the assignment name for this assignment object。 The name is also updated for each of the occurrences that the assignment appears in。
Python 示例
from oapy._oa import _design
# assume obj is a oaModAssignment
obj.setName(name)
obj.setInst(inst)
绑定状态: 已绑定
Python 调用: obj.setInst(inst)
This function changes the instance with which this assignment is associated。
异常
oacInstAndAssignmentNotInSameBlock。
Python 示例
from oapy._oa import _design
# assume obj is a oaModAssignment
obj.setInst(inst)
_design.oaModAssignment.find(inst, name)
绑定状态: 已绑定
Python 调用: _design.oaModAssignment.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.oaModAssignment.find(inst, name)