UaMonitoredItemData Class Reference

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>

Inheritance diagram for UaMonitoredItemData:
Collaboration diagram for UaMonitoredItemData:

List of all members.


Public Member Functions

 UaMonitoredItemData (VariableHandle *pVariableHandle, OpcUa_MonitoringMode MonitoringMode, OpcUa_Int32 ClientHandle, OpcUa_Double SamplingInterval, UaSubscription *pUaSubscription, OpcUa_UInt32 QueueSize, OpcUa_Boolean DiscardOldest, OpcUa_DataChangeTrigger dataChangeTrigger)
 ~UaMonitoredItemData ()
MonitoredItemType type () const
OpcUa_Boolean hasChanged ()
void setMonitoringMode (OpcUa_MonitoringMode monitoringMode)
void setIOVariableHandle (OpcUa_UInt32 hIOVariable)
void setDiscardPolicy (OpcUa_Boolean discardOldest)
void setQueueSize (OpcUa_UInt32 queueSize)
void setAbsolutDeadband (OpcUa_Double absoluteDeadband)
void setDataChangeTrigger (OpcUa_DataChangeTrigger dataChangeTrigger)
UaDataValuegetChangedValue ()
virtual void dataChange (const UaDataValue &dataValue)

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 ( VariableHandle pVariableHandle,
OpcUa_MonitoringMode  MonitoringMode,
OpcUa_Int32  ClientHandle,
OpcUa_Double  SamplingInterval,
UaSubscription pUaSubscription,
OpcUa_UInt32  QueueSize,
OpcUa_Boolean  DiscardOldest,
OpcUa_DataChangeTrigger  dataChangeTrigger 
)

construction

Parameters:
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.
dataChangeTrigger a trigger that indicates that data has changed.

UaMonitoredItemData::~UaMonitoredItemData (  ) 

destruction


Member Function Documentation

MonitoredItemType UaMonitoredItemData::type (  )  const [inline, virtual]

Get the type of monitored item

Returns:
the type of monitored item

Implements UaMonitoredItem.

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.

void UaMonitoredItemData::setMonitoringMode ( OpcUa_MonitoringMode  monitoringMode  )  [virtual]

Set the Monitoring Mode

Parameters:
monitoringMode the Monitoring Mode

Reimplemented from UaMonitoredItem.

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::setDiscardPolicy ( OpcUa_Boolean  discardOldest  ) 

Set the discard policy for the monitored item.

Parameters:
discardOldest discards the oldest.

void UaMonitoredItemData::setQueueSize ( OpcUa_UInt32  queueSize  ) 

Set the queue size for the monitored item.

Parameters:
queueSize the size of the queue.

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.

UaDataValue * UaMonitoredItemData::getChangedValue (  ) 

Get changed value from item and reset changed flag.

Returns:
the changed value from item and reset changed flag.

void UaMonitoredItemData::dataChange ( const UaDataValue dataValue  )  [virtual]

Signal a change in value or state.

Parameters:
dataValue the requested Value for this operation.

Implements IOVariableCallback.


The documentation for this class was generated from the following files:
  • src/uaserver/uaservercpp/uamodule/uamonitoreditem.h
  • src/uaserver/uaservercpp/uamodule/uamonitoreditem.cpp