Implements a UA monitored item for data changes. Derived from UaMonitoredItem and IOVariableCallback It is not possible to create plane copies of this class. It is not possible to use the default constructor.
More...
#include <uamonitoreditem.h>
List of all members.
Detailed Description
Implements a UA monitored item for data changes. Derived from UaMonitoredItem and IOVariableCallback It is not possible to create plane copies of this class. It is not possible to use the default constructor.
UaMonitoredItemData
Constructor & Destructor Documentation
UaMonitoredItemData::UaMonitoredItemData |
( |
const UaNodeId & |
nodeId, |
|
|
VariableHandle * |
pVariableHandle, |
|
|
OpcUa_MonitoringMode |
MonitoringMode, |
|
|
OpcUa_Int32 |
ClientHandle, |
|
|
OpcUa_Double |
SamplingInterval, |
|
|
UaSubscription * |
pUaSubscription, |
|
|
OpcUa_UInt32 |
QueueSize, |
|
|
OpcUa_Boolean |
DiscardOldest, |
|
|
OpcUa_DataChangeTrigger |
dataChangeTrigger |
|
) |
| |
construction
- Parameters:
-
nodeId | The Id of the given Node. |
pVariableHandle | Variable handle provided by the NodeManager::getVariableHandle. |
MonitoringMode | the mode for monitoring items. |
ClientHandle | a handle to the client. |
SamplingInterval | the value in MS for a Interval of a Variable |
QueueSize | the size of the queue. |
DiscardOldest | discards the oldest. |
pUaSubscription | The subscription of the given Node. |
dataChangeTrigger | a trigger that indicates that data has changed. |
UaMonitoredItemData::~UaMonitoredItemData |
( |
) |
|
Member Function Documentation
void UaMonitoredItemData::dataChange |
( |
const UaDataValue & |
dataValue ) |
[virtual] |
Signal a change in value or state.
- Parameters:
-
dataValue | the requested Value for this operation. |
Implements IOVariableCallback.
OpcUa_DataChangeTrigger UaMonitoredItemData::dataChangeTrigger |
( |
) |
const [inline] |
Get the data change trigger for the monitored item
OpcUa_Boolean UaMonitoredItemData::discardOldest |
( |
) |
const [inline] |
Get the discard policy for the monitored item
Get changed value from item and reset changed flag.
- Returns:
- the changed value from item and reset changed flag.
virtual UaDataValue UaMonitoredItemData::getLastValue |
( |
) |
[inline, virtual] |
OpcUa_Boolean UaMonitoredItemData::hasChanged |
( |
) |
[virtual] |
Check if the value or status of the item has changed.
- Returns:
- true if changed false if not.
Implements UaMonitoredItem.
IOManager* UaMonitoredItemData::pIOManager |
( |
) |
const [inline] |
VariableHandle* UaMonitoredItemData::pVariableHandle |
( |
) |
const [inline] |
OpcUa_UInt32 UaMonitoredItemData::queueSize |
( |
) |
[inline] |
Get the queue size of the monitored item
void UaMonitoredItemData::setAbsolutDeadband |
( |
OpcUa_Double |
absoluteDeadband ) |
|
Set the absolute deadband for the monitored item.
- Parameters:
-
absoluteDeadband | the absolute deadband for the monitored item. |
void UaMonitoredItemData::setDataChangeTrigger |
( |
OpcUa_DataChangeTrigger |
dataChangeTrigger ) |
|
Set the data change trigger for the monitored item.
- Parameters:
-
dataChangeTrigger | the data change trigger for the monitored item. |
void UaMonitoredItemData::setDiscardPolicy |
( |
OpcUa_Boolean |
discardOldest ) |
|
Set the discard policy for the monitored item.
- Parameters:
-
discardOldest | discards the oldest. |
void UaMonitoredItemData::setIOVariableHandle |
( |
OpcUa_UInt32 |
hIOVariable ) |
|
Set the related IOVariable handle.
- Parameters:
-
hIOVariable | The handle of the variable in the IOManager created with beginStartMonitoring. The handle was passed to the SDK in the callback finishStartMonitoring. |
void UaMonitoredItemData::setMonitoringMode |
( |
OpcUa_MonitoringMode |
monitoringMode ) |
[virtual] |
Set the Monitoring Mode
- Parameters:
-
monitoringMode | the Monitoring Mode |
Reimplemented from UaMonitoredItem.
void UaMonitoredItemData::setQueueSize |
( |
OpcUa_UInt32 |
queueSize ) |
|
Set the queue size for the monitored item.
- Parameters:
-
queueSize | the size of the queue. |
The documentation for this class was generated from the following files:
- /home/buildbot/work/uasdkcpp/src/uaserver/uaservercpp/uamodule/uamonitoreditem.h
- /home/buildbot/work/uasdkcpp/src/uaserver/uaservercpp/uamodule/uamonitoreditem.cpp