Implements a UA monitored item. It is not possible to create plane copies of this class. It is not possible to use the default constructor. More...
#include <uamonitoreditem.h>
Public Types | |
enum | MonitoredItemType { DATA, EVENT } |
MonitoredItem type enumeration. More... | |
Public Member Functions | |
UaMonitoredItem (const UaNodeId &nodeId, OpcUa_MonitoringMode MonitoringMode, OpcUa_Int32 ClientHandle, OpcUa_Double SamplingInterval, UaSubscription *pUaSubscription) | |
virtual | ~UaMonitoredItem () |
virtual MonitoredItemType | type () const =0 |
virtual OpcUa_Boolean | hasChanged ()=0 |
void | setClientHandle (OpcUa_Int32 clientHandle) |
OpcUa_Int32 | clientHandle () const |
virtual void | setMonitoringMode (OpcUa_MonitoringMode monitoringMode) |
OpcUa_MonitoringMode | monitoringMode () const |
void | setSamplingInterval (OpcUa_Double samplingInterval) |
OpcUa_Double | samplingInterval () const |
UaNodeId | nodeId () const |
void | setLinks (std::list< OpcUa_UInt32 > *pLinks) |
std::list< OpcUa_UInt32 > * | links () |
OpcUa_Boolean | wasTriggered () const |
void | resetTriggeredStatus () |
OpcUa_TimestampsToReturn | timestampsToReturn () const |
Protected Attributes | |
UaSubscription * | m_pUaSubscription |
Implements a UA monitored item. It is not possible to create plane copies of this class. It is not possible to use the default constructor.
UaMonitoredItem::UaMonitoredItem | ( | const UaNodeId & | nodeId, |
OpcUa_MonitoringMode | MonitoringMode, | ||
OpcUa_Int32 | ClientHandle, | ||
OpcUa_Double | SamplingInterval, | ||
UaSubscription * | pUaSubscription | ||
) |
construction
nodeId | The Id of the given Node. |
MonitoringMode | the mode for monitoring items. |
ClientHandle | a handle to the client. |
SamplingInterval | the value in MS for a Interval of a Variable. |
pUaSubscription | The subscription of the given Node. |
UaMonitoredItem::~UaMonitoredItem | ( | ) | [virtual] |
destruction
OpcUa_Int32 UaMonitoredItem::clientHandle | ( | ) | const [inline] |
Get the client handle of the monitored item
virtual OpcUa_Boolean UaMonitoredItem::hasChanged | ( | ) | [pure virtual] |
Check if the value or status of the item has changed
Implemented in UaMonitoredItemData, and UaMonitoredItemEvent.
std::list<OpcUa_UInt32>* UaMonitoredItem::links | ( | ) | [inline] |
Returns the triggering links of the monitored item.
OpcUa_MonitoringMode UaMonitoredItem::monitoringMode | ( | ) | const [inline] |
Get the monitoring mode of the monitored item
UaNodeId UaMonitoredItem::nodeId | ( | ) | const [inline] |
NodeId of the node monitored with this item
void UaMonitoredItem::resetTriggeredStatus | ( | ) | [inline] |
Sets the triggered status of the monitored item to false.
OpcUa_Double UaMonitoredItem::samplingInterval | ( | ) | const [inline] |
Get the sampling rate of the monitored item
void UaMonitoredItem::setClientHandle | ( | OpcUa_Int32 | clientHandle ) | [inline] |
Set the client handle of the monitored item
clientHandle | New client handle for the monitored item |
void UaMonitoredItem::setLinks | ( | std::list< OpcUa_UInt32 > * | pLinks ) | [inline] |
Sets the triggering links of the monitored item.
pLinks | the triggering links the monitored item |
virtual void UaMonitoredItem::setMonitoringMode | ( | OpcUa_MonitoringMode | monitoringMode ) | [inline, virtual] |
Set the Monitoring Mode
monitoringMode | the Monitoring Mode |
Reimplemented in UaMonitoredItemData, and UaMonitoredItemEvent.
void UaMonitoredItem::setSamplingInterval | ( | OpcUa_Double | samplingInterval ) | [inline] |
Set the sampling rate of the monitored item
samplingInterval | the sampling rate of the monitored item |
OpcUa_TimestampsToReturn UaMonitoredItem::timestampsToReturn | ( | ) | const [inline] |
Timestamps to return with a datavalue
virtual MonitoredItemType UaMonitoredItem::type | ( | ) | const [pure virtual] |
Get the type of monitored item
Implemented in UaMonitoredItemData, and UaMonitoredItemEvent.
OpcUa_Boolean UaMonitoredItem::wasTriggered | ( | ) | const [inline] |
Check if the item triggered
UaSubscription* UaMonitoredItem::m_pUaSubscription [protected] |
Parent subscription for the monitored item