Defines a DataChangeFilter for a monitored item. More...
enum class | DataChangeTrigger { Status, StatusOrValue, StatusOrValueOrTimestamp } |
enum class | DeadbandType { None, Absolute, Percent } |
DataChangeFilter(DataChangeFilter::DataChangeTrigger trigger, DataChangeFilter::DeadbandType deadbandType, double deadbandValue) | |
DataChangeFilter(const DataChangeFilter &rhs) | |
DataChangeFilter() | |
DataChangeFilter & | operator=(const DataChangeFilter &rhs) |
DataChangeFilter::DeadbandType | deadbandType() const |
double | deadbandValue() const |
void | setDeadbandType(DataChangeFilter::DeadbandType deadbandType) |
void | setDeadbandValue(double deadbandValue) |
void | setTrigger(DataChangeFilter::DataChangeTrigger trigger) |
DataChangeFilter::DataChangeTrigger | trigger() const |
QVariant | operator QVariant() const |
bool | operator==(const DataChangeFilter &rhs) const |
This class is used to set up filtering for a DataChange monitored item. It is defined in OPC-UA part 4, 7.12.2.
Enumerates the possible triggers for a DataChangeFilter.
Constant | Value | Description |
---|---|---|
QOpcUaMonitoringParameters::DataChangeFilter::DataChangeTrigger::Status |
0 |
Triggers if the value's status code changes. |
QOpcUaMonitoringParameters::DataChangeFilter::DataChangeTrigger::StatusOrValue |
1 |
Triggers if the value's status code or the value itself changes. |
QOpcUaMonitoringParameters::DataChangeFilter::DataChangeTrigger::StatusOrValueOrTimestamp |
2 |
Triggers if the value's status code, the value itself or the source timestamp changes. |
Enumerates the possible deadband types for a DataChangeFilter.
Constant | Value | Description |
---|---|---|
QOpcUaMonitoringParameters::DataChangeFilter::DeadbandType::None |
0 |
No deadband filtering. |
QOpcUaMonitoringParameters::DataChangeFilter::DeadbandType::Absolute |
1 |
A notification is generated if the absolute value of the difference between the last cached value and the current value is greater than the deadband value. |
QOpcUaMonitoringParameters::DataChangeFilter::DeadbandType::Percent |
2 |
Only valid for AnalogItems with an EURange property. A notification is generated if the absolute value of the difference between the last cached value and the current value is greater than value percent of the EURange. |
Constructs a data change filter with trigger trigger, deadband type deadbandType and deadband value deadbandValue.
Constructs a data change filter from rhs.
Constructs a data change filter with trigger on status
, deadband type none
and deadbandValue 0
.
Sets the values from rhs in this data change filter.
Returns the deadband type.
See also setDeadbandType().
Returns the deadband value.
See also setDeadbandValue().
Sets the deadband type to deadbandType.
See also deadbandType().
Sets the deadband value to deadbandValue.
See also deadbandValue().
Sets the trigger to trigger.
See also trigger().
Returns the trigger.
See also setTrigger().
Converts this data change filter to QVariant.
Returns true
if this data change filter has the same value as rhs.