SamplingEngine Class Reference

Provides the functionality to sample items at the defined sampling rate. Derived from UaThread. It is not possible to create plane copies of this Class. More...

#include <samplingengine.h>

Inheritance diagram for SamplingEngine:
Collaboration diagram for SamplingEngine:

List of all members.


Public Member Functions

 SamplingEngine ()
 ~SamplingEngine ()
void addItemToSampling (SamplingExecution *pItem, OpcUa_Int32 &samplingRate)
void removeItemFromSampling (SamplingExecution *pItem, OpcUa_Int32 samplingRate)

Detailed Description

Provides the functionality to sample items at the defined sampling rate. Derived from UaThread. It is not possible to create plane copies of this Class.

SamplingEngine


Constructor & Destructor Documentation

SamplingEngine::SamplingEngine (  ) 

construction.

construction

SamplingEngine::~SamplingEngine (  ) 

destruction


Member Function Documentation

void SamplingEngine::addItemToSampling ( SamplingExecution pItem,
OpcUa_Int32 &  samplingRate 
)

Adds item that should be sampled. This functions sorts the item into the according sampling lists. You must lock the list before using this function with lockSamplingList.

Parameters:
pItem pointer to MSamplingExecution interface.
samplingRate should be set to the requested sampling rate. This parameter gets evaluated and updated. This updated value should be returned as revised sampling rate.

void SamplingEngine::removeItemFromSampling ( SamplingExecution pItem,
OpcUa_Int32  samplingRate 
)

Removes the item from the according sampling list

Parameters:
pItem pointer to SamplingExecution interface.
samplingRate must be set to the used sampling rate returned from addItemToSampling.


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