PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand

class QOpcUaSimpleAttributeOperand

The OPC UA SimpleAttributeOperand type. More

Synopsis

Methods

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 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");
__init__()

Default constructs a simple attribute operand with no parameters set.

__init__(arg__1)
Parameters:

arg__1QOpcUaSimpleAttributeOperand

Constructs a simple attribute operand from rhs.

__init__(attributeId[, typeId=QStringLiteral("ns=0;i=2041")])
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 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

  • attributeIdNodeAttribute

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.

attributeId()
Return type:

NodeAttribute

Returns the attribute of the node browsePath is pointing to.

See also

setAttributeId()

browsePath()
Return type:

.list of QOpcUaQualifiedName

Returns the relative path to a node starting from typeId .

See also

setBrowsePath()

browsePathRef()
Return type:

.list of QOpcUaQualifiedName

Returns a reference to the browse path.

See also

browsePath()

indexRange()
Return type:

str

Returns the index range string.

See also

setIndexRange()

__ne__(rhs)
Parameters:

rhsQOpcUaSimpleAttributeOperand

Return type:

bool

Returns true if lhs has a different value than rhs.

__eq__(rhs)
Parameters:

rhsQOpcUaSimpleAttributeOperand

Return type:

bool

Returns true if lhs has the same value as rhs.

setAttributeId(attributeId)
Parameters:

attributeIdNodeAttribute

Sets the attribute id to attributeId.

See also

attributeId()

setBrowsePath(browsePath)
Parameters:

browsePath – .list of QOpcUaQualifiedName

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

See also

browsePath()

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()

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()

typeId()
Return type:

str

Returns the node id of a type definition node.

See also

setTypeId()