首页 / design / oaAssignment

oaAssignment

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

概览

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

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

详细说明

The oaAssignment class is the base class for all types of connection assignments。 The oaAssignment objects specify the overriding assignments for the connection definitions specified in corresponding oaConnectDef objects。 Together, these objects allow you to specify how nets are to be connected to by name in a design hierarchy。 The oaAssignment class can be observed by deriving from oaObserver 。 See oaNetConnectDef and oaTermConnectDef for information on the specific type of connection definition。 See oaAssignValue and oaAssignAssignment for information on the specific type of connection assignment。

方法总览

状态 Python 调用
obj.destroy()
obj.getName(name)
obj.getInst()
obj.setName(name)
obj.setInst(inst)
_design.oaAssignment.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 oaAssignment
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 searched for when resolving the connections for the oaNetConnectDef and oaTermConnectDef objects。

Python 示例

from oapy._oa import _design

# assume obj is a oaAssignment
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 oaAssignment
obj.getInst()

obj.setName(name)

绑定状态: 已绑定

Python 调用: obj.setName(name)

This function changes the assignment name for this assignment object。

Python 示例

from oapy._oa import _design

# assume obj is a oaAssignment
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 oaAssignment
obj.setInst(inst)

_design.oaAssignment.find(inst, name)

绑定状态: 已绑定

Python 调用: _design.oaAssignment.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.oaAssignment.find(inst, name)