首页 / design / oaPin

oaPin

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

概览

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

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

详细说明

The oaPin class implements an object that represents the physical connections of terminals to nets。 A terminal can have multiple pins where multiple physical connections can correspond to one logical connection。 All pins are associated with a physical figure and are named。 These names can be assigned by the creator。 For pins associated with scalar terminals, pin names can be automatically assigned by the database。 The oaPin class can be observed by deriving from oaObserver

方法总览

状态 Python 调用
obj.destroy()
obj.getTerm()
obj.getName(name)
obj.getAccessDir()
obj.getPlacementStatus()
obj.getPinType()
obj.setTerm(term)
obj.setName(name)
obj.setAccessDir(accessDir)
obj.setPlacementStatus(status)
obj.setPinType(pinType)
obj.getFigs()
obj.getConnRoutes()
_design.oaPin.create(term, accessDir=oacNone)
_design.oaPin.create(term, name, accessDir=oacNone)
_design.oaPin.find(term, name)

方法说明

obj.destroy()

绑定状态: 已绑定

Python 调用: obj.destroy()

This function removes this pin from the database。

Python 示例

from oapy._oa import _design

# assume obj is a oaPin
obj.destroy()

obj.getTerm()

绑定状态: 已绑定

Python 调用: obj.getTerm()

This function returns a pointer to the terminal to which this pin is attached。

Python 示例

from oapy._oa import _design

# assume obj is a oaPin
obj.getTerm()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function fills in the name argument with the name of this pin。

Python 示例

from oapy._oa import _design

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

obj.getAccessDir()

绑定状态: 已绑定

Python 调用: obj.getAccessDir()

This function returns the access direction bit-field for this pin。

Python 示例

from oapy._oa import _design

# assume obj is a oaPin
obj.getAccessDir()

obj.getPlacementStatus()

绑定状态: 已绑定

Python 调用: obj.getPlacementStatus()

This function returns the placement status of this pin。

Python 示例

from oapy._oa import _design

# assume obj is a oaPin
obj.getPlacementStatus()

obj.getPinType()

绑定状态: 已绑定

Python 调用: obj.getPinType()

This function returns the pin type of the oaPin object。

Python 示例

from oapy._oa import _design

# assume obj is a oaPin
obj.getPinType()

obj.setTerm(term)

绑定状态: 已绑定

Python 调用: obj.setTerm(term)

This function sets the terminal for this pin to the specified value。 The pin is given a unique name if the pin is explicitly named and if the specified terminal already has a pin with that name。

参数

  • term: The terminal to associate with the pin。

异常

  • oacTermCannotBeImplicit

Python 示例

from oapy._oa import _design

# assume obj is a oaPin
obj.setTerm(term)

obj.setName(name)

绑定状态: 已绑定

Python 调用: obj.setName(name)

This function sets the name of this pin to the specified value。

参数

  • name: The pin name to set。

异常

  • oacPinExists

Python 示例

from oapy._oa import _design

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

obj.setAccessDir(accessDir)

绑定状态: 已绑定

Python 调用: obj.setAccessDir(accessDir)

This function sets the access direction of this pin to the specified value。

参数

  • accessDir: The access direction of the pin, specified by OR'ing bits that represent the top, bottom, left, and right directions, referenced as oacTop, oacBottom, oacLeft, and oacRight; a value of oacNone specifies the pin should have no access direction。

Python 示例

from oapy._oa import _design

# assume obj is a oaPin
obj.setAccessDir(accessDir)

obj.setPlacementStatus(status)

绑定状态: 已绑定

Python 调用: obj.setPlacementStatus(status)

This function sets the placement status of this pin to the specified value。

参数

  • status: The status to set。

Python 示例

from oapy._oa import _design

# assume obj is a oaPin
obj.setPlacementStatus(status)

obj.setPinType(pinType)

绑定状态: 已绑定

Python 调用: obj.setPinType(pinType)

This function changes the pin type for this oaPin object。

参数

  • pinType: The oaPinTypeEnum value。

Python 示例

from oapy._oa import _design

# assume obj is a oaPin
obj.setPinType(pinType)

obj.getFigs()

绑定状态: 已绑定

Python 调用: obj.getFigs()

This function returns a collection of figures that are connected with this pin。

Python 示例

from oapy._oa import _design

# assume obj is a oaPin
obj.getFigs()

obj.getConnRoutes()

绑定状态: 已绑定

Python 调用: obj.getConnRoutes()

This function returns a collection of routes connected to this pin。 Each route in the collection has this pin as either its startConn, endConn, or both。

Python 示例

from oapy._oa import _design

# assume obj is a oaPin
obj.getConnRoutes()

_design.oaPin.create(term, accessDir=oacNone)

绑定状态: 已绑定

Python 调用: _design.oaPin.create(term, accessDir=oacNone)

This function creates a pin on the specified terminal。 The pin receives the specified access direction and name。

参数

  • term: The terminal on which to create the pin。
  • name: The pin name。
  • accessDir: The access direction of the pin, specified by OR'ing bits that represent the top, bottom, left, and right directions, referenced as oacTop, oacBottom, oacLeft, and oacRight; a value of oacNone specifies the pin should have no access direction。

返回

  • A pointer to the oaPin。

异常

  • oacTermCannotBeImplicit
  • oacInvalidAccessDirForPin
  • oacPinExists

Python 示例

from oapy._oa import _design

_design.oaPin.create(term, accessDir=oacNone)

_design.oaPin.create(term, name, accessDir=oacNone)

绑定状态: 已绑定

Python 调用: _design.oaPin.create(term, name, accessDir=oacNone)

This function creates a pin on the specified terminal。 The pin receives the specified access direction。 The pin name is automatically generated, with the default prefix P__%d, d referring to a unique integer。

参数

  • term: The terminal on which to create the pin。
  • accessDir: The access direction of the pin, specified by OR'ing bits that represent the top, bottom, left, and right directions, referenced as oacTop, oacBottom, oacLeft, and oacRight; a value of oacNone specifies the pin should have no access direction。

返回

  • A pointer to the oaPin。

异常

  • oacTermCannotBeImplicit
  • oacInvalidAccessDirForPin

Python 示例

from oapy._oa import _design

_design.oaPin.create(term, name, accessDir=oacNone)

_design.oaPin.find(term, name)

绑定状态: 已绑定

Python 调用: _design.oaPin.find(term, name)

This function searches the specified terminal for a pin with the specified name。

参数

  • term: The terminal to search。
  • name: The pin name to find。

返回

  • A pointer to the oaPin, if found; otherwise, NULL is returned。

Python 示例

from oapy._oa import _design

_design.oaPin.find(term, name)