oaPcellDef
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaPcellDef 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaPcellDef 当前在 oapy 中可用的 Python 接口。
详细说明
An oaPcellDef is a base class used to convey the binding from a Pcell to the code that handles its evaluation。 The oaPcellDef refers to a Pcell evaluator that has an oaPcellLink in OpenAccess。 An oaPcellDef is used by oaDesign::defineSuperMaster() to turn an oaDesign into a SuperMaster。 The oaPcellDef can be returned from that SuperMaster with oaDesign::getPcellDef() 。 The oaPcellDef class also provides a name/value table that the application can use to store user data。
构造函数
_design.oaPcellDef(pcellIn)
obj = _design.oaPcellDef(pcellIn)
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getIPcell() |
| ✅ | obj.addData(name, value) |
| ✅ | obj.removeData(name) |
| ✅ | obj.getDataValue(name, value) |
| ✅ | obj.setDataValue(name, value) |
方法说明
obj.getIPcell()
绑定状态: 已绑定
Python 调用: obj.getIPcell()
This function returns the Pcell evaluator associated with this oaPcellDef。
Python 示例
from oapy._oa import _design
# assume obj is a oaPcellDef
obj.getIPcell()
obj.addData(name, value)
绑定状态: 已绑定
Python 调用: obj.addData(name, value)
This function adds an entry in the oaPcellDef data table。 The function returns true if a new entry was added and false if the specified name already exists in the table。
参数
name: The name of the entry。value: The value of the entry。
Python 示例
from oapy._oa import _design
# assume obj is a oaPcellDef
obj.addData(name, value)
obj.removeData(name)
绑定状态: 已绑定
Python 调用: obj.removeData(name)
This function removes an entry from the oaPcellDef data table。
参数
name: The name of the entry to remove。
Python 示例
from oapy._oa import _design
# assume obj is a oaPcellDef
obj.removeData(name)
obj.getDataValue(name, value)
绑定状态: 已绑定
Python 调用: obj.getDataValue(name, value)
This function retrieves the value of the specified entry in the oaPcellDef data table。 If an entry with the specified name is not found in the table, false is returned。
参数
name: The name of the entry whose value is requested。value: The value of the entry if found。
Python 示例
from oapy._oa import _design
# assume obj is a oaPcellDef
obj.getDataValue(name, value)
obj.setDataValue(name, value)
绑定状态: 已绑定
Python 调用: obj.setDataValue(name, value)
This function sets the specified entry in the oaPcellDef data table with the given value。 If an entry with the specified name is not found, false is returned。
参数
name: The name of the entry for which to set the value。value: The new value for the entry。
Python 示例
from oapy._oa import _design
# assume obj is a oaPcellDef
obj.setDataValue(name, value)