QOpcUaSimpleAttributeOperand#

The OPC UA SimpleAttributeOperand type. More

Inheritance diagram of PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand

Synopsis#

Functions#

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:

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:

NodeAttribute

Returns the attribute of the node browsePath is pointing to.

See also

setAttributeId()

PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.browsePath()#
Return type:

Returns the relative path to a node starting from typeId .

See also

setBrowsePath()

PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.browsePathRef()#
Return type:

Returns a reference to the browse path.

See also

browsePath()

PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.indexRange()#
Return type:

str

Returns the index range string.

See also

setIndexRange()

PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.__eq__(rhs)#
Parameters:

rhsPySide6.QtOpcUa.QOpcUaSimpleAttributeOperand

Return type:

bool

Returns true if this simple attribute operand has the same value as rhs.

PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.setAttributeId(attributeId)#
Parameters:

attributeIdNodeAttribute

Sets the attribute id to attributeId.

See also

attributeId()

PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.setBrowsePath(browsePath)#
Parameters:

browsePath

Sets the browse path to the node holding the attribute to browsePath.

See also

browsePath()

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

indexRange()

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

typeId()

PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand.typeId()#
Return type:

str

Returns the node id of a type definition node.

See also

setTypeId()