C# Класс Opc.Ua.Sample.MonitoredItemQueue

Provides a queue for data changes.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
MonitoredItemQueue ( ) : System

Creates an empty queue.

Publish ( DataValue &value, ServiceResult &error ) : bool

Publishes the oldest value in the queue.

QueueValue ( DataValue value, ServiceResult error ) : void

Adds the value to the queue.

SetQueueSize ( uint queueSize, bool discardOldest, DiagnosticsMasks diagnosticsMasks ) : void

Sets the queue size.

SetSamplingInterval ( double samplingInterval ) : void

Sets the sampling interval used when queuing values.

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

Метод Описание
Dequeue ( DataValue &value, ServiceResult &error ) : bool

Removes a value and an error from the queue.

Enqueue ( DataValue value, ServiceResult error ) : void

Adds the value to the queue. Discards values if the queue is full.

SetOverflowBit ( DataValue &value, ServiceResult &error ) : void

Sets the overflow bit in the value and error.

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

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

Creates an empty queue.
public MonitoredItemQueue ( ) : System
Результат System

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

Publishes the oldest value in the queue.
public Publish ( DataValue &value, ServiceResult &error ) : bool
value DataValue The value.
error ServiceResult The error associated with the value.
Результат bool

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

Adds the value to the queue.
public QueueValue ( DataValue value, ServiceResult error ) : void
value DataValue The value to queue.
error ServiceResult The error to queue.
Результат void

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

Sets the queue size.
public SetQueueSize ( uint queueSize, bool discardOldest, DiagnosticsMasks diagnosticsMasks ) : void
queueSize uint The new queue size.
discardOldest bool Whether to discard the oldest values if the queue overflows.
diagnosticsMasks DiagnosticsMasks Specifies which diagnostics which should be kept in the queue.
Результат void

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

Sets the sampling interval used when queuing values.
public SetSamplingInterval ( double samplingInterval ) : void
samplingInterval double The new sampling interval.
Результат void