C# 클래스 Opc.Ua.Sample.MonitoredItemQueue

Provides a queue for data changes.
파일 보기 프로젝트 열기: OPCFoundation/UA-.NET 1 사용 예제들

공개 메소드들

메소드 설명
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