首页 / tech / oaPurposeArray

oaPurposeArray

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

概览

oaPurposeArrayoapy 中可用,可通过 _tech 模块访问。

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

构造函数

_tech.oaPurposeArray(sizeIn=0)

obj = _tech.oaPurposeArray(sizeIn=0)

方法总览

状态 Python 调用
obj.isMatch(arrayIn)
obj.consistsOf(purposeNum)

方法说明

obj.isMatch(arrayIn)

绑定状态: 已绑定

Python 调用: obj.isMatch(arrayIn)

This function returns true if the contents of arrayIn match the contents of this purpose array。 Note that an empty purpose array will not match any constraint that has any purpose specified for any layer。 In other words, it is equivalent to an array that only contains oavPurposeNumberNo or oavPurposeNumberAny。

参数

  • arrayIn:

Python 示例

from oapy._oa import _tech

# assume obj is a oaPurposeArray
obj.isMatch(arrayIn)

obj.consistsOf(purposeNum)

绑定状态: 已绑定

Python 调用: obj.consistsOf(purposeNum)

This function returns true if the array consists of purposeNum。

参数

  • purposeNum:

Python 示例

from oapy._oa import _tech

# assume obj is a oaPurposeArray
obj.consistsOf(purposeNum)