C# Класс Opc.Ua.Server.SamplingGroup

An object which periodically reads the items and updates the cache.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ApplyChanges ( ) : bool

Updates the group by apply any pending changes.

Dispose ( ) : void

Frees any unmanaged resources.

ModifyMonitoring ( OperationContext context, ISampledDataChangeMonitoredItem monitoredItem ) : bool

Checks if the monitored item can still be handled by the group.

The ApplyChanges() method must be called to actually stop sampling the item.

SamplingGroup ( IServerInternal server, INodeManager nodeManager, List samplingRates, OperationContext context, double samplingInterval ) : System

Creates a new instance of a sampling group.

Shutdown ( ) : void

Stops the sampling thread.

StartMonitoring ( OperationContext context, ISampledDataChangeMonitoredItem monitoredItem ) : bool

Checks if the monitored item can be handled by the group.

The ApplyChanges() method must be called to actually start sampling the item.

Startup ( ) : void

Starts the sampling thread which periodically reads the items in the group.

StopMonitoring ( ISampledDataChangeMonitoredItem monitoredItem ) : bool

Stops monitoring the item.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Приватные методы

Метод Описание
AdjustSamplingInterval ( double samplingInterval ) : double

Ensures the requested sampling interval lines up with one of the supported sampling rates.

DoSample ( object state ) : void

Samples the values of the items.

MeetsGroupCriteria ( OperationContext context, ISampledDataChangeMonitoredItem monitoredItem ) : bool

Checks if the item meets the group's criteria.

SampleMonitoredItems ( object data ) : void

Periodically checks if the sessions have timed out.

Описание методов

ApplyChanges() публичный Метод

Updates the group by apply any pending changes.
public ApplyChanges ( ) : bool
Результат bool

Dispose() публичный Метод

Frees any unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

ModifyMonitoring() публичный Метод

Checks if the monitored item can still be handled by the group.
The ApplyChanges() method must be called to actually stop sampling the item.
public ModifyMonitoring ( OperationContext context, ISampledDataChangeMonitoredItem monitoredItem ) : bool
context OperationContext
monitoredItem ISampledDataChangeMonitoredItem
Результат bool

SamplingGroup() публичный Метод

Creates a new instance of a sampling group.
public SamplingGroup ( IServerInternal server, INodeManager nodeManager, List samplingRates, OperationContext context, double samplingInterval ) : System
server IServerInternal
nodeManager INodeManager
samplingRates List
context OperationContext
samplingInterval double
Результат System

Shutdown() публичный Метод

Stops the sampling thread.
public Shutdown ( ) : void
Результат void

StartMonitoring() публичный Метод

Checks if the monitored item can be handled by the group.
The ApplyChanges() method must be called to actually start sampling the item.
public StartMonitoring ( OperationContext context, ISampledDataChangeMonitoredItem monitoredItem ) : bool
context OperationContext
monitoredItem ISampledDataChangeMonitoredItem
Результат bool

Startup() публичный Метод

Starts the sampling thread which periodically reads the items in the group.
public Startup ( ) : void
Результат void

StopMonitoring() публичный Метод

Stops monitoring the item.
public StopMonitoring ( ISampledDataChangeMonitoredItem monitoredItem ) : bool
monitoredItem ISampledDataChangeMonitoredItem
Результат bool