oaSubNetwork
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaSubNetwork 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaSubNetwork 当前在 oapy 中可用的 Python 接口。
详细说明
The oaSubNetwork class identifies a subset of the nodes and devices within a full oaParasiticNetwork 。 The oaSubNetwork class can be used to represent the relationship between a set of nodes and devices and the corresponding route element or shape。 Nodes can appear in multiple subNetworks for such cases as a wire connecting to a via or several wires connecting at an oaSteiner point。 Although it is possible for a device to appear in multiple subNetworks, this is generally undesirable because it is not possible to determine what portion of the device's value lies within each subNetwork。 When a subNetwork contains multiple nodes and devices, their positions within the corresponding route element or shape can be specified using oaNode::setLocation() 。 Undo, properties, and groups are not supported for oaSubNetwork。 Extensions on oaSubNetwork (and interPointer extensions that refer to an oaSubNetwork) are accessible only while the oaSubNetwork is loaded。 The oaSubNetwork class can be observed by deriving from oaObserver
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.destroy() |
| ✅ | obj.getParasiticNetwork() |
| ✅ | obj.getFig() |
| ✅ | obj.getName(name) |
| ✅ | obj.setName(name) |
| ✅ | obj.setFig(fig) |
| ✅ | obj.getNodes() |
| ✅ | obj.getDevices() |
| ✅ | _design.oaSubNetwork.create(network, name) |
| ✅ | _design.oaSubNetwork.find(network, name) |
方法说明
obj.destroy()
绑定状态: 已绑定
Python 调用: obj.destroy()
This function destroys this subNetwork。 The nodes and devices to which the subNetwork refers are not affected。
Python 示例
from oapy._oa import _design
# assume obj is a oaSubNetwork
obj.destroy()
obj.getParasiticNetwork()
绑定状态: 已绑定
Python 调用: obj.getParasiticNetwork()
This function returns the parasiticNetwork to which this subNetwork belongs。
Python 示例
from oapy._oa import _design
# assume obj is a oaSubNetwork
obj.getParasiticNetwork()
obj.getFig()
绑定状态: 已绑定
Python 调用: obj.getFig()
This function returns the fig associated with this subNetwork。 If this subNetwork is not associated with a fig, NULL is returned。
Python 示例
from oapy._oa import _design
# assume obj is a oaSubNetwork
obj.getFig()
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
This function returns the name of this subNetwork。
Python 示例
from oapy._oa import _design
# assume obj is a oaSubNetwork
obj.getName(name)
obj.setName(name)
绑定状态: 已绑定
Python 调用: obj.setName(name)
This function sets the name of this subNetwork。
异常
oacSubNetworkNameExists。
Python 示例
from oapy._oa import _design
# assume obj is a oaSubNetwork
obj.setName(name)
obj.setFig(fig)
绑定状态: 已绑定
Python 调用: obj.setFig(fig)
This function sets the fig that this subNetwork represents, which must be a shape or a via。
参数
fig: The figure to associate with this subNetwork。
异常
oacObjectNetworkNotInSameDomain。oacSubNetworkNotShapeOrVia。
Python 示例
from oapy._oa import _design
# assume obj is a oaSubNetwork
obj.setFig(fig)
obj.getNodes()
绑定状态: 已绑定
Python 调用: obj.getNodes()
This function returns a collection containing the nodes to which this subNetwork refers。
Python 示例
from oapy._oa import _design
# assume obj is a oaSubNetwork
obj.getNodes()
obj.getDevices()
绑定状态: 已绑定
Python 调用: obj.getDevices()
This function returns a collection containing the devices to which this subNetwork refers。
Python 示例
from oapy._oa import _design
# assume obj is a oaSubNetwork
obj.getDevices()
_design.oaSubNetwork.create(network, name)
绑定状态: 已绑定
Python 调用: _design.oaSubNetwork.create(network, name)
This function creates a subNetwork with the specified name within the specified network。 If network is a partition, the subNetwork can only refer to nodes and devices in network or its ancestors。
异常
oacSubNetworkNameExists。
Python 示例
from oapy._oa import _design
_design.oaSubNetwork.create(network, name)
_design.oaSubNetwork.find(network, name)
绑定状态: 已绑定
Python 调用: _design.oaSubNetwork.find(network, name)
This function finds and returns the subNetwork with the specified name。
Python 示例
from oapy._oa import _design
_design.oaSubNetwork.find(network, name)