首页 / design / oaModScalarInst

oaModScalarInst

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

概览

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

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

详细说明

The oaModScalarInst class implements a scalar (single-bit) instance of design master。 Scalar inst is the most common kind of instance。 This class has a simple name with no index。 oaModScalarInst objects are always in the module domain。

方法总览

状态 Python 调用
obj.getName(name)
obj.setName(name)
obj.getName(name)
obj.getName(ns, name)
_design.oaModScalarInst.create(module, master, name, params=NULL)
_design.oaModScalarInst.create(module, master, params=NULL)
_design.oaModScalarInst.create(module, libName, cellName, viewName, name, params=NULL)
_design.oaModScalarInst.create(module, libName, cellName, viewName, params=NULL)
_design.oaModScalarInst.find(module, name)
_design.oaModScalarInst.isValidName(module, name)

方法说明

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the name of this scalarInst in the name argument。

Python 示例

from oapy._oa import _design

# assume obj is a oaModScalarInst
obj.getName(name)

obj.setName(name)

绑定状态: 已绑定

Python 调用: obj.setName(name)

This function sets the name for this scalar inst。 Exceptions are thrown if: the new name does not imply a scalar name an instance already exists with the given name a vectorInstDef exists with the given name。

参数

  • name: The new name to be set for this instance。

异常

  • oacInvalidHierInstName
  • oacInstNameExists
  • oacInstNameOverlapsOtherInst

Python 示例

from oapy._oa import _design

# assume obj is a oaModScalarInst
obj.setName(name)

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

Python 示例

from oapy._oa import _design

# assume obj is a oaModScalarInst
obj.getName(name)

obj.getName(ns, name)

绑定状态: 已绑定

Python 调用: obj.getName(ns, name)

Python 示例

from oapy._oa import _design

# assume obj is a oaModScalarInst
obj.getName(ns, name)

_design.oaModScalarInst.create(module, master, name, params=NULL)

绑定状态: 已绑定

Python 调用: _design.oaModScalarInst.create(module, master, name, params=NULL)

This function creates an oaModScalarInst object with the specified attributes。 The name for the instance is generated automatically by this create function, with the default name prefix I__%d, where d refers to an integer it will generate to make this name unique。

参数

  • module: The module in which to create the instance。
  • libName: The libName of the instance master。
  • cellName: The cellName of the instance master。
  • viewName: The viewName of the instance master。
  • params: Optional parameter array for pCell instances。

Python 示例

from oapy._oa import _design

_design.oaModScalarInst.create(module, master, name, params=NULL)

_design.oaModScalarInst.create(module, master, params=NULL)

绑定状态: 已绑定

Python 调用: _design.oaModScalarInst.create(module, master, params=NULL)

This function creates an oaModScalarInst object with the specified attributes。 The name for the instance is specified。 Exceptions are thrown if: the new name does not imply a scalar name an instance exists with the given name a vectorInstDef exists with the given name。

参数

  • module: The module in which to create the instance。
  • libName: The libName of the instance master。
  • cellName: The cellName of the instance master。
  • viewName: The viewName of the instance master。
  • name: The instance name。
  • params: Optional parameter array for pCell instances。

异常

  • oacInvalidHierInstName
  • oacInstNameExists
  • oacInstNameOverlapsOtherInst

Python 示例

from oapy._oa import _design

_design.oaModScalarInst.create(module, master, params=NULL)

_design.oaModScalarInst.create(module, libName, cellName, viewName, name, params=NULL)

绑定状态: 已绑定

Python 调用: _design.oaModScalarInst.create(module, libName, cellName, viewName, name, params=NULL)

This function create an oaModScalarInst object with the specified attributes。 This function lets you specify the master design。 A name for the new instance is automatically generated。

参数

  • module: The module in which to create the instance。
  • master: A pointer to the instance master。
  • params: Optional parameter array for pCell instances。

异常

  • oacInvalidSuperMaster

Python 示例

from oapy._oa import _design

_design.oaModScalarInst.create(module, libName, cellName, viewName, name, params=NULL)

_design.oaModScalarInst.create(module, libName, cellName, viewName, params=NULL)

绑定状态: 已绑定

Python 调用: _design.oaModScalarInst.create(module, libName, cellName, viewName, params=NULL)

This function create an oaModScalarInst object with the specified attributes。 This function lets you specify the master design and name for the new instance。 Exceptions are thrown if: the new name does not imply a scalar name an instance already exists with the given name a vectorInstDef exist with the given name。

参数

  • module: The module in which to create the instance。
  • master: A pointer to the instance master。
  • name: The instance name。
  • params: Optional parameter array for pCell instances。

异常

  • oacInvalidSuperMaster
  • oacInvalidHierInstName
  • oacInstNameExists
  • oacInstNameOverlapsOtherInst

Python 示例

from oapy._oa import _design

_design.oaModScalarInst.create(module, libName, cellName, viewName, params=NULL)

_design.oaModScalarInst.find(module, name)

绑定状态: 已绑定

Python 调用: _design.oaModScalarInst.find(module, name)

This function searches the specified module for a module scalarInst with the specified name。 If the name is found, the function returns the module scalar instance。 Otherwise, NULL is returned。

返回

  • The oaModScalarInst pointer or NULL。

Python 示例

from oapy._oa import _design

_design.oaModScalarInst.find(module, name)

_design.oaModScalarInst.isValidName(module, name)

绑定状态: 已绑定

Python 调用: _design.oaModScalarInst.isValidName(module, name)

This function returns a boolean value that indicates if the specified name is valid for a new oaModScalarInst in the specified module。 Exceptions are thrown if: the specified name does not imply a scalar name an instance already exists with the specified name a vectorInstDef exists with the specified name。

异常

  • oacInvalidHierInstName
  • oacInstNameExists
  • oacInstNameOverlapsOtherInst

Python 示例

from oapy._oa import _design

_design.oaModScalarInst.isValidName(module, name)