oaResistor
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaResistor 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaResistor 当前在 oapy 中可用的 Python 接口。
详细说明
The oaResistor class represents a resistor in a parasitic network for a net。 Each resistor object has one resistance value for each analysis point that the parasitic network represents。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getWidth() |
| ✅ | obj.getLength() |
| ✅ | obj.getHeight() |
| ✅ | obj.getNumCuts() |
| ✅ | obj.getCutArea() |
| ✅ | obj.getCutPerimeter() |
| ✅ | obj.hasWidth() |
| ✅ | obj.hasLength() |
| ✅ | obj.hasHeight() |
| ✅ | obj.hasNumCuts() |
| ✅ | obj.hasCutArea() |
| ✅ | obj.hasCutPerimeter() |
| ✅ | obj.setWidth(width) |
| ✅ | obj.setLength(length) |
| ✅ | obj.setHeight(height) |
| ✅ | obj.setNumCuts(numCuts) |
| ✅ | obj.setCutArea(cutArea) |
| ✅ | obj.setCutPerimeter(cutPerimeter) |
| ✅ | _design.oaResistor.create(fromNode, toNode) |
| ✅ | _design.oaResistor.create(fromNode, toNode, id) |
方法说明
obj.getWidth()
绑定状态: 已绑定
Python 调用: obj.getWidth()
This function returns the effective width associated with this resistor。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.getWidth()
obj.getLength()
绑定状态: 已绑定
Python 调用: obj.getLength()
This function returns the effective length associated with this resistor。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.getLength()
obj.getHeight()
绑定状态: 已绑定
Python 调用: obj.getHeight()
This function returns the effective height associated with this resistor。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.getHeight()
obj.getNumCuts()
绑定状态: 已绑定
Python 调用: obj.getNumCuts()
This function returns the number of cuts associated with this resistor。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.getNumCuts()
obj.getCutArea()
绑定状态: 已绑定
Python 调用: obj.getCutArea()
This function returns the cut area associated with this resistor。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.getCutArea()
obj.getCutPerimeter()
绑定状态: 已绑定
Python 调用: obj.getCutPerimeter()
This function returns the cut area perimeter associated with this resistor。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.getCutPerimeter()
obj.hasWidth()
绑定状态: 已绑定
Python 调用: obj.hasWidth()
This function returns a boolean indicating whether or not this resistor has width。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.hasWidth()
obj.hasLength()
绑定状态: 已绑定
Python 调用: obj.hasLength()
This function returns a boolean indicating whether or not this resistor has length。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.hasLength()
obj.hasHeight()
绑定状态: 已绑定
Python 调用: obj.hasHeight()
This function returns a boolean indicating whether or not this resistor has height。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.hasHeight()
obj.hasNumCuts()
绑定状态: 已绑定
Python 调用: obj.hasNumCuts()
This function returns a boolean indicating whether or not this resistor has number of cuts。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.hasNumCuts()
obj.hasCutArea()
绑定状态: 已绑定
Python 调用: obj.hasCutArea()
This function returns a boolean indicating whether or not this resistor has cut area。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.hasCutArea()
obj.hasCutPerimeter()
绑定状态: 已绑定
Python 调用: obj.hasCutPerimeter()
This function returns a boolean indicating whether or not this resistor has cut perimeter。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.hasCutPerimeter()
obj.setWidth(width)
绑定状态: 已绑定
Python 调用: obj.setWidth(width)
This function sets the effective width of this resistor to the specified width。
参数
width: the effective width to set on this oaResistor object。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.setWidth(width)
obj.setLength(length)
绑定状态: 已绑定
Python 调用: obj.setLength(length)
This function sets the effective length of this resistor to the specified length。
参数
length: the effective length to set on this oaResistor object。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.setLength(length)
obj.setHeight(height)
绑定状态: 已绑定
Python 调用: obj.setHeight(height)
This function sets the effective height of this resistor to the specified height。
参数
height: the effective height to set on this oaResistor object。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.setHeight(height)
obj.setNumCuts(numCuts)
绑定状态: 已绑定
Python 调用: obj.setNumCuts(numCuts)
This function sets the number of cuts of this resistor to the specified value。
参数
numCuts: the number of cuts to set on this oaResistor object。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.setNumCuts(numCuts)
obj.setCutArea(cutArea)
绑定状态: 已绑定
Python 调用: obj.setCutArea(cutArea)
This function sets the cut area of this resistor to the specified value。
参数
cutArea: the cut area to set on this oaResistor object。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.setCutArea(cutArea)
obj.setCutPerimeter(cutPerimeter)
绑定状态: 已绑定
Python 调用: obj.setCutPerimeter(cutPerimeter)
This function sets the cut perimeter of this resistor to the specified value。
参数
cutPerimeter: the cut perimeter to set on this oaResistor object。
Python 示例
from oapy._oa import _design
# assume obj is a oaResistor
obj.setCutPerimeter(cutPerimeter)
_design.oaResistor.create(fromNode, toNode)
绑定状态: 已绑定
Python 调用: _design.oaResistor.create(fromNode, toNode)
This function creates a resistor belonging to the parasitic network containing fromNode and toNode。 An exception will be thrown if the id is the reserved oacInvalidDeviceID value or if a device with the specified id value already exists。 The hasId() function will return true for devices created with this function and the getId() function will return the user-specified id。 Resistors can be created between nodes in different partitions of the same root parasitic network, where one of the partitions must be an ancestor of the other。 In this case, the resistor will be created in the lower level partition, and the node in the higher level partition must have an id so that it can be found when loading the lower level partition。
参数
fromNode: The starting node for the resistor。toNode: The ending node for the resistor。id: The unique ID to be assigned to the resistor created。
异常
oacInvalidDeviceIdSpecified。oacLocalDeviceIdExists。oacNodesNotInSameDesign。oacNodesNotInSameNetwork。oacNodesNotInRelatedPartitions。oacAncestorNodeWithoutId。
Python 示例
from oapy._oa import _design
_design.oaResistor.create(fromNode, toNode)
_design.oaResistor.create(fromNode, toNode, id)
绑定状态: 已绑定
Python 调用: _design.oaResistor.create(fromNode, toNode, id)
This function creates a resistor belonging to the specified parasitic network。 The device created will not have an ID associated with it。 The hasId() function will return false for these devices and the getId() function will return an oacInvalidDeviceID value。 Resistors can be created between nodes in different partitions of the same root parasitic network, where one of the partitions must be an ancestor of the other。 In this case, the resistor will be created in the lower level partition, and the node in the higher level partition must have an id so that it can be found when loading the lower level partition。
参数
fromNode: The starting node for the inductor。toNode: The ending node for the inductor。
异常
oacNodesNotInSameDesign。oacNodesNotInSameNetwork。oacNodesNotInRelatedPartitions。oacAncestorNodeWithoutId。
Python 示例
from oapy._oa import _design
_design.oaResistor.create(fromNode, toNode, id)