oaStdDevice
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaStdDevice 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaStdDevice 当前在 oapy 中可用的 Python 接口。
详细说明
The oaStdDevice class is an abstract base class for parasitic devices contained within an oaParasiticNetwork that have two endpoints and one value for each analysis point that the parasitic network represents。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getNode(endpoint) |
| ✅ | obj.getOtherNode(node) |
| ✅ | obj.getEndpoint(node) |
| ✅ | obj.setValue(ap, value) |
| ✅ | obj.getValue(ap) |
| ✅ | obj.getNodes() |
方法说明
obj.getNode(endpoint)
绑定状态: 已绑定
Python 调用: obj.getNode(endpoint)
This function returns the node connected to the specified endpoint of this device。 在 oaCouplingCap 中重新实现。
Python 示例
from oapy._oa import _design
# assume obj is a oaStdDevice
obj.getNode(endpoint)
obj.getOtherNode(node)
绑定状态: 已绑定
Python 调用: obj.getOtherNode(node)
This function returns the node connected to the other endpoint of this device (the endpoint that is not connected to node)。 在 oaCouplingCap 中重新实现。
Python 示例
from oapy._oa import _design
# assume obj is a oaStdDevice
obj.getOtherNode(node)
obj.getEndpoint(node)
绑定状态: 已绑定
Python 调用: obj.getEndpoint(node)
This function returns the endpoint of this device to which node is connected。
异常
oacDeviceNotConnectedToNode。
Python 示例
from oapy._oa import _design
# assume obj is a oaStdDevice
obj.getEndpoint(node)
obj.setValue(ap, value)
绑定状态: 已绑定
Python 调用: obj.setValue(ap, value)
This function sets the value of this device for the specified analysis point。
Python 示例
from oapy._oa import _design
# assume obj is a oaStdDevice
obj.setValue(ap, value)
obj.getValue(ap)
绑定状态: 已绑定
Python 调用: obj.getValue(ap)
This function gets the value of this device for the specified analysis point。
Python 示例
from oapy._oa import _design
# assume obj is a oaStdDevice
obj.getValue(ap)
obj.getNodes()
绑定状态: 已绑定
Python 调用: obj.getNodes()
This function returns a collection containing the nodes connected to this stdDevice。
Python 示例
from oapy._oa import _design
# assume obj is a oaStdDevice
obj.getNodes()