PySide6.QtOpcUa.QOpcUaAttributeOperand

class QOpcUaAttributeOperand

OPC UA AttributeOperand 类型。更多

概要

方法

注意

本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。

详细描述

AttributeOperand 在 OPC UA 1.05 第4部分 7.7.4.4 中定义。它的目的与 QOpcUaSimpleAttributeOperand 相同,但具有更多可配置的选项。

__init__()

默认构造一个没有设置参数的属性操作数。

__init__(rhs)
Parameters:

rhsQOpcUaAttributeOperand

rhs构造一个属性操作数。

alias()
Return type:

字符串

返回此 QAttributeOperand 的别名。

另请参阅

setAlias()

attributeId()
Return type:

NodeAttribute

返回节点属性 browsePath 所指向的属性的ID。

另请参阅

setAttributeId()

browsePath()
Return type:

QOpcUaRelativePathElement的列表

返回浏览路径。

另请参阅

setBrowsePath()

browsePathRef()
Return type:

QOpcUaRelativePathElement的列表

返回浏览路径的引用。

另请参阅

browsePath()

indexRange()
Return type:

字符串

返回索引范围字符串。

另请参阅

setIndexRange()

nodeId()
Return type:

字符串

返回类型定义节点的节点ID。

另请参阅

setNodeId()

__ne__(rhs)
Parameters:

rhsQOpcUaAttributeOperand

Return type:

布尔

如果 lhs 的值与 rhs 不同,则返回 true

__eq__(rhs)
Parameters:

rhsQOpcUaAttributeOperand

Return type:

布尔

如果 lhs 的值与 rhs 相同,则返回 true

setAlias(alias)
Parameters:

别名 – str

将别名设置为alias。这允许将此实例用作过滤器中其他操作的操作数。

另请参阅

alias()

setAttributeId(attributeId)
Parameters:

attributeIdNodeAttribute

将属性id设置为attributeId

另请参阅

attributeId()

setBrowsePath(browsePath)
Parameters:

browsePath – QOpcUaRelativePathElement 的列表

设置从nodeId()browsePath的节点的相对路径。

另请参阅

browsePath()

setIndexRange(indexRange)
Parameters:

indexRange – str

将用于标识属性值的单个值或子集的索引范围字符串设置为indexRange

另请参阅

indexRange()

setNodeId(nodeId)
Parameters:

nodeId – str

将类型定义节点的节点ID设置为nodeId

另请参阅

nodeId()