PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand¶
- class QOpcUaSimpleAttributeOperand¶
The OPC UA SimpleAttributeOperand type.
Details
The SimpleAttributeOperand is specified in OPC UA 1.05 part 4, 7.7.4.5. It is used when a node attribute is required as operand.
For example, the following simple attribute operand represents the value of the “Severity” field of the base event type:
QOpcUaSimpleAttributeOperand("Severity");
Synopsis¶
Methods¶
def
__init__()def
attributeId()def
browsePath()def
browsePathRef()def
indexRange()def
__ne__()def
__eq__()def
setAttributeId()def
setBrowsePath()def
setIndexRange()def
setTypeId()def
typeId()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- __init__()¶
Default constructs a simple attribute operand with no parameters set.
- __init__(rhs)
- Parameters:
Constructs a simple attribute operand from
rhs.- __init__(attributeId[, typeId=QStringLiteral("ns=0;i=2041")])
- Parameters:
attributeId –
NodeAttributetypeId – str
Constructs a simple attribute operand for the attribute
attributeIdof an object or variable of typetypeId. This can be used for requesting the ConditionId in an event filter as described in OPC UA 1.05 part 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
Constructs a simple attribute operand for attribute
attributeIdof the direct child with the browse namenamein namespacenamespaceIndex.typeIdis the node id of a type definition node. The operand will be restricted to instances of typetypeIdor a subtype.- attributeId()¶
- Return type:
Returns the attribute of the node
browsePathis pointing to.See also
- browsePath()¶
- Return type:
.list of QOpcUaQualifiedName
Returns the relative path to a node starting from
typeId.See also
- browsePathRef()¶
- Return type:
.list of QOpcUaQualifiedName
Returns a reference to the browse path.
See also
- indexRange()¶
- Return type:
str
Returns the index range string.
See also
- __ne__(rhs)¶
- Parameters:
- Return type:
bool
Returns
trueiflhshas a different value thanrhs.- __eq__(rhs)¶
- Parameters:
- Return type:
bool
Returns
trueiflhshas the same value asrhs.- setAttributeId(attributeId)¶
- Parameters:
attributeId –
NodeAttribute
Sets the attribute id to
attributeId.See also
- setBrowsePath(browsePath)¶
- Parameters:
browsePath – .list of QOpcUaQualifiedName
Sets the browse path to the node holding the attribute to
browsePath.See also
- setIndexRange(indexRange)¶
- Parameters:
indexRange – str
Sets the index range string used to identify a single value or subset of the attribute’s value to
indexRange.See also
- setTypeId(typeId)¶
- Parameters:
typeId – str
Sets the node id of the type definition node to
typeId. The operand will be of the type or one of its subtypes.See also
- typeId()¶
- Return type:
str
Returns the node id of a type definition node.
See also