PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand¶
- class QOpcUaSimpleAttributeOperand¶
OPC UA SimpleAttributeOperand 类型。更多…
概要¶
方法¶
def
__init__()def
attributeId()def
browsePath()def
browsePathRef()def
indexRange()def
__ne__()def
__eq__()def
setAttributeId()def
setBrowsePath()def
setIndexRange()def
setTypeId()def
typeId()
注意
本文档可能包含从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:
从
rhs构造一个简单的属性操作数。- __init__(attributeId[, typeId=QStringLiteral("ns=0;i=2041")])
- Parameters:
attributeId –
NodeAttributetypeId – str
为类型为
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
attributeId –
NodeAttribute
为命名空间
namespaceIndex中具有浏览名称name的直接子节点的属性attributeId构造一个简单的属性操作数。typeId是类型定义节点的节点ID。操作数将限制为类型typeId或其子类型的实例。- attributeId()¶
- Return type:
返回节点
browsePath所指向的属性。另请参阅
- browsePath()¶
- Return type:
返回从
typeId开始的节点的相对路径。另请参阅
- browsePathRef()¶
- Return type:
返回浏览路径的引用。
另请参阅
- indexRange()¶
- Return type:
字符串
返回索引范围字符串。
另请参阅
- __ne__(rhs)¶
- Parameters:
- Return type:
布尔
如果
lhs的值与rhs不同,则返回true。- __eq__(rhs)¶
- Parameters:
- Return type:
布尔
如果
lhs的值与rhs相同,则返回true。- setAttributeId(attributeId)¶
- Parameters:
attributeId –
NodeAttribute
将属性id设置为
attributeId。另请参阅
- setBrowsePath(browsePath)¶
- Parameters:
browsePath – QOpcUaQualifiedName 的列表
将浏览路径设置为持有属性的节点到
browsePath。另请参阅
- setIndexRange(indexRange)¶
- Parameters:
indexRange – str
将用于标识属性值的单个值或子集的索引范围字符串设置为
indexRange。另请参阅
- setTypeId(typeId)¶
- Parameters:
typeId – str
将类型定义节点的节点ID设置为
typeId。操作数将是该类型或其子类型之一。另请参阅
- typeId()¶
- Return type:
字符串
返回类型定义节点的节点ID。
另请参阅