首页 / design / oaPcellObserver

oaPcellObserver

模块: oapy._oa._design 导入: from oapy._oa import _design

概览

oaPcellObserveroapy 中可用,可通过 _design 模块访问。

本页汇总 oaPcellObserver 当前在 oapy 中可用的 Python 接口。

详细说明

The oaPcellObserver class is a base template class for IPcell observers。 It supports onError, preEval, and postEval event notifications。 See oaObserver for information on using OpenAccess observer template classes to derive and instantiate observers in an application。

构造函数

_design.oaPcellObserver(priorityIn, enabledIn=true)

obj = _design.oaPcellObserver(priorityIn, enabledIn=true)

方法总览

状态 Python 调用
obj.onError(design, msg, type)
obj.onPreEval(design, pcellDef)
obj.onPostEval(design, pcellDef)

方法说明

obj.onError(design, msg, type)

绑定状态: 已绑定

Python 调用: obj.onError(design, msg, type)

This function is called when an error occured during the pcell evalution。

参数

  • design: A pointer to the design where the error occured。 It can be either the superMaster or subMaster。
  • msg: error message。
  • type: oaPcellErrorTypeEnum value。

Python 示例

from oapy._oa import _design

# assume obj is a oaPcellObserver
obj.onError(design, msg, type)

obj.onPreEval(design, pcellDef)

绑定状态: 已绑定

Python 调用: obj.onPreEval(design, pcellDef)

This function is called just before a pCell master's generation code is evaluated。 The application's derived class should implement this function to receive notification when a pCell master is about to be evaluated。

参数

  • design: A pointer to the pCell master。
  • pcellDef: A pointer to the pCell definition object to be evaluated。

Python 示例

from oapy._oa import _design

# assume obj is a oaPcellObserver
obj.onPreEval(design, pcellDef)

obj.onPostEval(design, pcellDef)

绑定状态: 已绑定

Python 调用: obj.onPostEval(design, pcellDef)

This function is called after a pCell master's generation code is evaluated。 The application's derived class should implement this function to receive notification when a pCell master has been evaluated。

参数

  • design: A pointer to the pCell master。
  • pcellDef: A pointer to the modified pCell definition object。

Python 示例

from oapy._oa import _design

# assume obj is a oaPcellObserver
obj.onPostEval(design, pcellDef)