Defines a DataChangeFilter for a monitored item. 更多...
enum class | DataChangeTrigger { Status, StatusOrValue, StatusOrValueOrTimestamp } |
enum class | DeadbandType { None, Absolute, Percent } |
DataChangeFilter () | |
DataChangeFilter (QOpcUaMonitoringParameters::DataChangeFilter::DataChangeTrigger trigger , QOpcUaMonitoringParameters::DataChangeFilter::DeadbandType deadbandType , double deadbandValue ) | |
DataChangeFilter (const QOpcUaMonitoringParameters::DataChangeFilter & rhs ) | |
QOpcUaMonitoringParameters::DataChangeFilter::DeadbandType | deadbandType () const |
double | deadbandValue () const |
void | setDeadbandType (QOpcUaMonitoringParameters::DataChangeFilter::DeadbandType deadbandType ) |
void | setDeadbandValue (double deadbandValue ) |
void | setTrigger (QOpcUaMonitoringParameters::DataChangeFilter::DataChangeTrigger trigger ) |
QOpcUaMonitoringParameters::DataChangeFilter::DataChangeTrigger | trigger () const |
QVariant | operator QVariant () const |
QOpcUaMonitoringParameters::DataChangeFilter & | operator= (const QOpcUaMonitoringParameters::DataChangeFilter & rhs ) |
bool | operator== (const QOpcUaMonitoringParameters::DataChangeFilter & rhs ) const |
This class is used to set up filtering for a DataChange monitored item. It is defined in OPC UA 1.05 part 4, 7.22.2.
Enumerates the possible triggers for a DataChangeFilter .
常量 | 值 | 描述 |
---|---|---|
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 .
常量 | 值 | 描述 |
---|---|---|
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 on
status
, deadband type
none
and
deadbandValue
0
.
Constructs a data change filter with trigger trigger , deadband type deadbandType and deadband value deadbandValue .
Constructs a data change filter from rhs .
Returns the deadband type.
另请参阅 setDeadbandType ().
Returns the deadband value.
另请参阅 setDeadbandValue ().
Sets the deadband type to deadbandType .
另请参阅 deadbandType ().
Sets the deadband value to deadbandValue .
另请参阅 deadbandValue ().
Sets the trigger to trigger .
另请参阅 trigger ().
Returns the trigger.
另请参阅 setTrigger ().
Converts this data change filter to QVariant .
设置值从 rhs in this data change filter.
返回
true
if this data change filter has the same value as
rhs
.