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 (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)
 ~UaMonitoredItemData ()
MonitoredItemType type () const
OpcUa_Boolean hasChanged ()
void setMonitoringMode (OpcUa_MonitoringMode monitoringMode)
void setIOVariableHandle (OpcUa_UInt32 hIOVariable)
void setDiscardPolicy (OpcUa_Boolean discardOldest)
OpcUa_Boolean discardOldest () const
void setQueueSize (OpcUa_UInt32 queueSize)
OpcUa_UInt32 queueSize ()
void setAbsolutDeadband (OpcUa_Double absoluteDeadband)
void setDataChangeTrigger (OpcUa_DataChangeTrigger dataChangeTrigger)
OpcUa_DataChangeTrigger dataChangeTrigger () const
IOManagerpIOManager () const
VariableHandlepVariableHandle () const
UaDataValuegetChangedValue ()
virtual void dataChange (const UaDataValue &dataValue)
virtual UaDataValue getLastValue ()

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:
nodeIdThe Id of the given Node.
pVariableHandleVariable handle provided by the NodeManager::getVariableHandle.
MonitoringModethe mode for monitoring items.
ClientHandlea handle to the client.
SamplingIntervalthe value in MS for a Interval of a Variable
QueueSizethe size of the queue.
DiscardOldestdiscards the oldest.
pUaSubscriptionThe subscription of the given Node.
dataChangeTriggera trigger that indicates that data has changed.
UaMonitoredItemData::~UaMonitoredItemData (  )

destruction


Member Function Documentation

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

Signal a change in value or state.

Parameters:
dataValuethe 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

UaDataValue * UaMonitoredItemData::getChangedValue (  )

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]

Get last value send with dataChange.

Implements IOVariableCallback.

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]

Get the related IOManager

VariableHandle* UaMonitoredItemData::pVariableHandle (  ) const [inline]

Get the related VariableHandle

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:
absoluteDeadbandthe absolute deadband for the monitored item.
void UaMonitoredItemData::setDataChangeTrigger ( OpcUa_DataChangeTrigger  dataChangeTrigger )

Set the data change trigger for the monitored item.

Parameters:
dataChangeTriggerthe data change trigger for the monitored item.
void UaMonitoredItemData::setDiscardPolicy ( OpcUa_Boolean  discardOldest )

Set the discard policy for the monitored item.

Parameters:
discardOldestdiscards the oldest.
void UaMonitoredItemData::setIOVariableHandle ( OpcUa_UInt32  hIOVariable )

Set the related IOVariable handle.

Parameters:
hIOVariableThe 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:
monitoringModethe Monitoring Mode

Reimplemented from UaMonitoredItem.

void UaMonitoredItemData::setQueueSize ( OpcUa_UInt32  queueSize )

Set the queue size for the monitored item.

Parameters:
queueSizethe size of the queue.
MonitoredItemType UaMonitoredItemData::type (  ) const [inline, virtual]

Get the type of monitored item

Implements UaMonitoredItem.


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