QOpcUaSimpleAttributeOperand#
The OPC UA SimpleAttributeOperand type. More…
Synopsis#
Functions#
def
attributeId
()def
browsePath
()def
browsePathRef
()def
indexRange
()def
__eq__
(rhs)def
setAttributeId
(attributeId)def
setBrowsePath
(browsePath)def
setIndexRange
(indexRange)def
setTypeId
(typeId)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
Detailed Description#
The SimpleAttributeOperand is specified in OPC-UA part 4, 7.4.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");
- class PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand#
PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand(attributeId[, typeId=QStringLiteral(“ns=0;i=2041”)])
PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand(arg__1)
PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand(name[, namespaceIndex=0[, typeId=QStringLiteral(“ns=0;i=2041”)[, attributeId=QOpcUa.NodeAttribute.Value]]])
- Parameters:
attributeId –
NodeAttribute
name – str
namespaceIndex –
quint16
typeId – str
Constructs a simple attribute operand for the attribute attributeId
of an object or variable of type typeId
. This can be used for requesting the ConditionId in an event filter as described in OPC-UA part 9, Table 8.
Constructs a simple attribute operand from rhs
.
Constructs a simple attribute operand for attribute attributeId
of the direct child with the browse name name
in namespace namespaceIndex
. typeId
is the node id of a type definition node. The operand will be restricted to instances of type typeId
or a subtype.
- PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.attributeId()#
- Return type:
Returns the attribute of the node browsePath
is pointing to.
See also
- PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.browsePath()#
Returns the relative path to a node starting from typeId
.
See also
- PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.browsePathRef()#
Returns a reference to the browse path.
See also
- PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.indexRange()#
- Return type:
str
Returns the index range string.
See also
- PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.__eq__(rhs)#
- Parameters:
- Return type:
bool
Returns true
if this simple attribute operand has the same value as rhs
.
- PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.setAttributeId(attributeId)#
- Parameters:
attributeId –
NodeAttribute
Sets the attribute id to attributeId
.
See also
- PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.setBrowsePath(browsePath)#
- Parameters:
browsePath –
Sets the browse path to the node holding the attribute to browsePath
.
See also
- PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.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
- PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.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
- PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.typeId()#
- Return type:
str
Returns the node id of a type definition node.
See also