首页 / design / oaAssignmentDef

oaAssignmentDef

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

概览

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

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

详细说明

The oaAssignmentDef class is a utility class used with the oaConnectDef and oaAssigAssignment objects。 The oaAssignmentDef class specifies an assignment name and a default net name。 The assignment name specifies the name of an oaAssignment to search for when resolving connectivity associated with an oaConnectDef 。 When an oaAssignmentDef is used with an oaNetConnectDef , the default net name specifies the name to default to for the net if a corresponding assignment is not found。 When an oaAssignmentDef is used with an oaTermConnectDef , the default net name specifies the name to default to for the net to externally connect the terminal to if a corresponding assignment is not found。 When an oaAssignmentDef is used with an oaAssignAssignment , its assignment name and default net name override those on the oaAssignmentDef of the corresponding oaConnectDef and the search for a matching assignment continues using the new assignment name。 If an assignment is still not found, then the default net name in the oaAssignAssignment is used to resolve the connectivity。

构造函数

_design.oaAssignmentDef()

obj = _design.oaAssignmentDef()

_design.oaAssignmentDef(assignmentNameIn, defaultNameIn)

obj = _design.oaAssignmentDef(assignmentNameIn, defaultNameIn)

_design.oaAssignmentDef(assignmentNameIn, defaultNameIn)

obj = _design.oaAssignmentDef(assignmentNameIn, defaultNameIn)

方法总览

状态 Python 调用
obj.assignmentName()
obj.defaultName()
obj.setAssignmentName(assignmentNameIn)
obj.setDefaultName(defaultNameIn)
obj.setDefaultName(defaultNameIn)

方法说明

obj.assignmentName()

绑定状态: 已绑定

Python 调用: obj.assignmentName()

This function returns a const reference to the assignment name in this oaAssignmentDef。 The assignmentName is the name of an oaAssignment to search for when resolving the connectivity for a corresponding oaNetConnectDef or oaTermConnectDef object。

Python 示例

from oapy._oa import _design

# assume obj is a oaAssignmentDef
obj.assignmentName()

obj.defaultName()

绑定状态: 已绑定

Python 调用: obj.defaultName()

This function returns a const reference to the oaSimpleName stored in this oaAssignmentDef。 The name is either an oaScalarName or oaVectorBitName and specifies a single-bit net name。 You can query the name type in order to access the corresponding oaScalarName or oaVectorBitName information。

Python 示例

from oapy._oa import _design

# assume obj is a oaAssignmentDef
obj.defaultName()

obj.setAssignmentName(assignmentNameIn)

绑定状态: 已绑定

Python 调用: obj.setAssignmentName(assignmentNameIn)

This function changes the assignment name in this assignment definition。

Python 示例

from oapy._oa import _design

# assume obj is a oaAssignmentDef
obj.setAssignmentName(assignmentNameIn)

obj.setDefaultName(defaultNameIn)

绑定状态: 已绑定

Python 调用: obj.setDefaultName(defaultNameIn)

This function changes the default net name in this assignment definition。

Python 示例

from oapy._oa import _design

# assume obj is a oaAssignmentDef
obj.setDefaultName(defaultNameIn)

obj.setDefaultName(defaultNameIn)

绑定状态: 已绑定

Python 调用: obj.setDefaultName(defaultNameIn)

This function changes the default net name in this assignment definition。

Python 示例

from oapy._oa import _design

# assume obj is a oaAssignmentDef
obj.setDefaultName(defaultNameIn)