oaModDesignInst
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaModDesignInst 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaModDesignInst 当前在 oapy 中可用的 Python 接口。
详细说明
The oaModDesignInst class is a base for instances of a design master。 oaModDesignInst objects are always in the module domain。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getMaster() |
| ✅ | obj.getHeader() |
| ✅ | obj.getParams(params) |
| ✅ | obj.getLibName(libName) |
| ✅ | obj.getCellName(cellName) |
| ✅ | obj.getViewName(viewName) |
| ✅ | obj.getLibName(ns, libName) |
| ✅ | obj.getCellName(ns, cellName) |
| ✅ | obj.getViewName(ns, viewName) |
| ✅ | obj.findParam(name, param) |
| ✅ | obj.setMaster(master) |
| ✅ | obj.setMaster(libName, cellName, viewName) |
| ✅ | obj.setParams(params) |
方法说明
obj.getMaster()
绑定状态: 已绑定
Python 调用: obj.getMaster()
This function attempts to return the master associated with this instance。 If the instance is not previously bound, it attempts to open the master and bind this instance。 If the instance cannot be bound, NULL is returned。
Python 示例
from oapy._oa import _design
# assume obj is a oaModDesignInst
obj.getMaster()
obj.getHeader()
绑定状态: 已绑定
Python 调用: obj.getHeader()
This function returns the instHeader associated with this instance。 The instHeader is a collection of the attributes that are common to all instances of a particular master。 For Pcell instances, this function returns the subheader。
返回
- The pointer to the instance header。
Python 示例
from oapy._oa import _design
# assume obj is a oaModDesignInst
obj.getHeader()
obj.getParams(params)
绑定状态: 已绑定
Python 调用: obj.getParams(params)
This function fills out params with the parameters of this instance。 Only Pcell instances have parameters。 This call only returns the parameters that were specified during creation or through calls to setParams() 。 If invoked on an inst that is not a Pcell or if no parameter is specified for the instance, the returned params paramArray will have a numParams of zero。
Python 示例
from oapy._oa import _design
# assume obj is a oaModDesignInst
obj.getParams(params)
obj.getLibName(libName)
绑定状态: 已绑定
Python 调用: obj.getLibName(libName)
This function returns the library name for the master design referenced by this instance in the namespace specified。
参数
ns: The namespace for the library name。libName: The library name for the master design。
Python 示例
from oapy._oa import _design
# assume obj is a oaModDesignInst
obj.getLibName(libName)
obj.getCellName(cellName)
绑定状态: 已绑定
Python 调用: obj.getCellName(cellName)
This function returns the cell name for the master design referenced by this instance in the namespace specified。
参数
ns: The namespace for the cell name。cellName: The cell name for the master design。
Python 示例
from oapy._oa import _design
# assume obj is a oaModDesignInst
obj.getCellName(cellName)
obj.getViewName(viewName)
绑定状态: 已绑定
Python 调用: obj.getViewName(viewName)
This function returns the view name for the master design referenced by this instance in the namespace specified。
参数
ns: The namespace for the view name。viewName: The view name for the master design。
Python 示例
from oapy._oa import _design
# assume obj is a oaModDesignInst
obj.getViewName(viewName)
obj.getLibName(ns, libName)
绑定状态: 已绑定
Python 调用: obj.getLibName(ns, libName)
This function returns the library name for the master design referenced by this instance。
参数
libName: The name of the library for the master design。
Python 示例
from oapy._oa import _design
# assume obj is a oaModDesignInst
obj.getLibName(ns, libName)
obj.getCellName(ns, cellName)
绑定状态: 已绑定
Python 调用: obj.getCellName(ns, cellName)
This function returns the cell name for the master design referenced by this instance。
参数
cellName: The name of the cell for the master design。
Python 示例
from oapy._oa import _design
# assume obj is a oaModDesignInst
obj.getCellName(ns, cellName)
obj.getViewName(ns, viewName)
绑定状态: 已绑定
Python 调用: obj.getViewName(ns, viewName)
This function returns the view name for the master design referenced by this instance。
参数
viewName: The name of the view for the master design。
Python 示例
from oapy._oa import _design
# assume obj is a oaModDesignInst
obj.getViewName(ns, viewName)
obj.findParam(name, param)
绑定状态: 已绑定
Python 调用: obj.findParam(name, param)
This function searches the parameter list of this instance for a parameter with the specified name。 If found, it fills out param with the appropriate attributes and returns true。 Otherwise, the function returns false。 Only Pcell instances have parameters。
参数
name: The parameter name to find。param: The parameter class to fill out if the parameter is found。
Python 示例
from oapy._oa import _design
# assume obj is a oaModDesignInst
obj.findParam(name, param)
obj.setMaster(master)
绑定状态: 已绑定
Python 调用: obj.setMaster(master)
This function sets the master of this instance。 This version sets the master to the design specified by the specified library, cell, and view names and does not force the master to open。
参数
libName: The library name for the new instance master。cellName: The cell name for the new instance master。viewName: The view name for the new instance master。
Python 示例
from oapy._oa import _design
# assume obj is a oaModDesignInst
obj.setMaster(master)
obj.setMaster(libName, cellName, viewName)
绑定状态: 已绑定
Python 调用: obj.setMaster(libName, cellName, viewName)
This function sets the master of this instance。 This version sets the master to the specified design。
参数
master: The pointer to the new instance master。
异常
oacInvalidSuperMaster。
Python 示例
from oapy._oa import _design
# assume obj is a oaModDesignInst
obj.setMaster(libName, cellName, viewName)
obj.setParams(params)
绑定状态: 已绑定
Python 调用: obj.setParams(params)
This function sets the parameters of this instance to the specified list。 If this instance already has parameters attached to it, the existing parameters are replaced。 The oaParamArray is any subset of the master's oaParamArray definition。 Any parameter omitted is given the default value from the master。
参数
params: The array of parameters to apply to the instance。
异常
oacInvalidPcellMaster。oacPcellMasterNotBound。
Python 示例
from oapy._oa import _design
# assume obj is a oaModDesignInst
obj.setParams(params)