首页 / design / oaPcellFileObserver

oaPcellFileObserver

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

概览

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

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

详细说明

The oaPcellFileObserver class is a base class for PcellFile observers。 It supports onRead, preAppend, and postAppend event notifications。 See oaObserver for information on using OpenAccess observer classes to derive and instantiate observers in an application。

构造函数

_design.oaPcellFileObserver(priorityIn, enabledIn=true)

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

方法总览

状态 Python 调用
obj.onRead(design, file, offset)
obj.onPreAppend(design, file)
obj.onPostAppend(design, file)
obj.isEnabled()
obj.enable(enabledIn)
obj.getPriority()

方法说明

obj.onRead(design, file, offset)

绑定状态: 已绑定

Python 调用: obj.onRead(design, file, offset)

This function is called when a pcell subMaster is read from a PCellFile。 The application's derived class should implement this function to receive notification when a pcell subMaster is read from a PcellFile。

参数

  • design: A pointer to the pcell subMaster being read。
  • file: A pointer to the PcellFile from which the pcell subMaster is read。
  • offset: The offset of the PcellFile from where the pcell subMaster is read。

Python 示例

from oapy._oa import _design

# assume obj is a oaPcellFileObserver
obj.onRead(design, file, offset)

obj.onPreAppend(design, file)

绑定状态: 已绑定

Python 调用: obj.onPreAppend(design, file)

This function is called just before a pcell subMaster is appended to a PcellFile。 The application's derived class should implement this function to receive notification when a pcell subMaster is about to be appended to a PcellFile。

参数

  • design: A pointer to the pcell subMaster。
  • file: A pointer to the PCellFile being appended。

Python 示例

from oapy._oa import _design

# assume obj is a oaPcellFileObserver
obj.onPreAppend(design, file)

obj.onPostAppend(design, file)

绑定状态: 已绑定

Python 调用: obj.onPostAppend(design, file)

This function is called just after a pcell subMaster is appended to a PcellFile。 The application's derived class should implement this function to receive notification when a pcell subMaster has been appended to a PcellFile。

参数

  • design: A pointer to the pcell subMaster。
  • file: A pointer to the PCellFile being appended。

Python 示例

from oapy._oa import _design

# assume obj is a oaPcellFileObserver
obj.onPostAppend(design, file)

obj.isEnabled()

绑定状态: 已绑定

Python 调用: obj.isEnabled()

This function returns a boolean value indicating whether this observer is active。

Python 示例

from oapy._oa import _design

# assume obj is a oaPcellFileObserver
obj.isEnabled()

obj.enable(enabledIn)

绑定状态: 已绑定

Python 调用: obj.enable(enabledIn)

This function activates or deactivates this observer。

参数

  • enabledIn: Indicates whether to make this observer active or inactive。

Python 示例

from oapy._oa import _design

# assume obj is a oaPcellFileObserver
obj.enable(enabledIn)

obj.getPriority()

绑定状态: 已绑定

Python 调用: obj.getPriority()

This function returns the priority of this observer。

Python 示例

from oapy._oa import _design

# assume obj is a oaPcellFileObserver
obj.getPriority()