PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand

class QOpcUaSimpleAttributeOperand

OPC UA SimpleAttributeOperand 类型。更多

概要

方法

注意

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

详细描述

SimpleAttributeOperand 在 OPC UA 1.05 第4部分 7.7.4.5 中指定。当需要节点属性作为操作数时使用。

例如,以下简单的属性操作数表示基本事件类型的“Severity”字段的值:

QOpcUaSimpleAttributeOperand("Severity");
__init__()

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

__init__(rhs)
Parameters:

rhsQOpcUaSimpleAttributeOperand

rhs构造一个简单的属性操作数。

__init__(attributeId[, typeId=QStringLiteral("ns=0;i=2041")])
Parameters:

为类型为typeId的对象或变量的属性attributeId构造一个简单的属性操作数。这可以用于在事件过滤器中请求ConditionId,如OPC UA 1.05第9部分5.5.2所述。

__init__(name[, namespaceIndex=0[, typeId=QStringLiteral("ns=0;i=2041")[, attributeId=QOpcUa.NodeAttribute.Value]]])
Parameters:
  • name – str

  • namespaceIndex – int

  • typeId – str

  • attributeIdNodeAttribute

为命名空间namespaceIndex中具有浏览名称name的直接子节点的属性attributeId构造一个简单的属性操作数。typeId是类型定义节点的节点ID。操作数将限制为类型typeId或其子类型的实例。

attributeId()
Return type:

NodeAttribute

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

另请参阅

setAttributeId()

browsePath()
Return type:

QOpcUaQualifiedName的列表

返回从typeId开始的节点的相对路径。

另请参阅

setBrowsePath()

browsePathRef()
Return type:

QOpcUaQualifiedName的列表

返回浏览路径的引用。

另请参阅

browsePath()

indexRange()
Return type:

字符串

返回索引范围字符串。

另请参阅

setIndexRange()

__ne__(rhs)
Parameters:

rhsQOpcUaSimpleAttributeOperand

Return type:

布尔

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

__eq__(rhs)
Parameters:

rhsQOpcUaSimpleAttributeOperand

Return type:

布尔

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

setAttributeId(attributeId)
Parameters:

attributeIdNodeAttribute

将属性id设置为attributeId

另请参阅

attributeId()

setBrowsePath(browsePath)
Parameters:

browsePath – QOpcUaQualifiedName 的列表

将浏览路径设置为持有属性的节点到browsePath

另请参阅

browsePath()

setIndexRange(indexRange)
Parameters:

indexRange – str

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

另请参阅

indexRange()

setTypeId(typeId)
Parameters:

typeId – str

将类型定义节点的节点ID设置为typeId。操作数将是该类型或其子类型之一。

另请参阅

typeId()

typeId()
Return type:

字符串

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

另请参阅

setTypeId()