PySide6.QtOpcUa.QOpcUaSimpleAttributeOperand¶
- class QOpcUaSimpleAttributeOperand¶
The OPC UA SimpleAttributeOperand type. More…
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
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__1 –
QOpcUaSimpleAttributeOperand
Constructs a simple attribute operand from
rhs
.- __init__(attributeId[, typeId=QStringLiteral("ns=0;i=2041")])
- Parameters:
attributeId –
NodeAttribute
typeId – str
Constructs a simple attribute operand for the attribute
attributeId
of 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
attributeId
of the direct child with the browse namename
in namespacenamespaceIndex
.typeId
is the node id of a type definition node. The operand will be restricted to instances of typetypeId
or a subtype.- attributeId()¶
- Return type:
Returns the attribute of the node
browsePath
is 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
true
iflhs
has a different value thanrhs
.- __eq__(rhs)¶
- Parameters:
- Return type:
bool
Returns
true
iflhs
has 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