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

Provides a basic monitored item implementation which does not support queuing.
Наследование: IDataChangeMonitoredItem
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DataChangeMonitoredItem ( MonitoredNode source, uint id, uint attributeId, NumericRange indexRange, QualifiedName dataEncoding, DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, MonitoringMode monitoringMode, uint clientHandle, double samplingInterval, bool alwaysReportUpdates ) : System

Constructs a new instance.

DataChangeMonitoredItem ( MonitoredNode source, uint id, uint attributeId, NumericRange indexRange, QualifiedName dataEncoding, DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, MonitoringMode monitoringMode, uint clientHandle, double samplingInterval, uint queueSize, bool discardOldest, DataChangeFilter filter, Range range, bool alwaysReportUpdates ) : System

Constructs a new instance.

GetCreateResult ( MonitoredItemCreateResult &result ) : ServiceResult

Returns the results for the create request.

GetModifyResult ( MonitoredItemModifyResult &result ) : ServiceResult

Returns the results for the modify request.

Modify ( DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, uint clientHandle, double samplingInterval ) : ServiceResult

Modifies the monitored item parameters,

Modify ( DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, uint clientHandle, double samplingInterval, uint queueSize, bool discardOldest, DataChangeFilter filter, Range range ) : ServiceResult

Modifies the monitored item parameters,

Publish ( OperationContext context, Queue notifications, Queue diagnostics ) : bool

Called by the subscription to publish any notification.

QueueValue ( DataValue value, ServiceResult error ) : void

Queues a new data change.

SetMonitoringMode ( MonitoringMode monitoringMode ) : MonitoringMode

Changes the monitoring mode.

SetSemanticsChanged ( ) : void

Sets a flag indicating that the semantics for the monitored node have changed.

The StatusCode for next value reported by the monitored item will have the SemanticsChanged bit set.

SetStructureChanged ( ) : void

Sets a flag indicating that the structure of the monitored node has changed.

The StatusCode for next value reported by the monitored item will have the StructureChanged bit set.

ValueChanged ( ISystemContext context ) : void

Called when the attribute being monitored changed. Reads and queues the value.

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

Метод Описание
IncrementSampleTime ( ) : void

Increments the sample time to the next interval.

Publish ( OperationContext context, DataValue value, ServiceResult error, Queue notifications, Queue diagnostics ) : void

Publishes a value.

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

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

Constructs a new instance.
public DataChangeMonitoredItem ( MonitoredNode source, uint id, uint attributeId, NumericRange indexRange, QualifiedName dataEncoding, DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, MonitoringMode monitoringMode, uint clientHandle, double samplingInterval, bool alwaysReportUpdates ) : System
source MonitoredNode
id uint
attributeId uint
indexRange NumericRange
dataEncoding QualifiedName
diagnosticsMasks DiagnosticsMasks
timestampsToReturn TimestampsToReturn
monitoringMode MonitoringMode
clientHandle uint
samplingInterval double
alwaysReportUpdates bool
Результат System

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

Constructs a new instance.
public DataChangeMonitoredItem ( MonitoredNode source, uint id, uint attributeId, NumericRange indexRange, QualifiedName dataEncoding, DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, MonitoringMode monitoringMode, uint clientHandle, double samplingInterval, uint queueSize, bool discardOldest, DataChangeFilter filter, Range range, bool alwaysReportUpdates ) : System
source MonitoredNode
id uint
attributeId uint
indexRange NumericRange
dataEncoding QualifiedName
diagnosticsMasks DiagnosticsMasks
timestampsToReturn TimestampsToReturn
monitoringMode MonitoringMode
clientHandle uint
samplingInterval double
queueSize uint
discardOldest bool
filter DataChangeFilter
range Range
alwaysReportUpdates bool
Результат System

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

Returns the results for the create request.
public GetCreateResult ( MonitoredItemCreateResult &result ) : ServiceResult
result MonitoredItemCreateResult
Результат ServiceResult

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

Returns the results for the modify request.
public GetModifyResult ( MonitoredItemModifyResult &result ) : ServiceResult
result MonitoredItemModifyResult
Результат ServiceResult

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

Modifies the monitored item parameters,
public Modify ( DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, uint clientHandle, double samplingInterval ) : ServiceResult
diagnosticsMasks DiagnosticsMasks
timestampsToReturn TimestampsToReturn
clientHandle uint
samplingInterval double
Результат ServiceResult

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

Modifies the monitored item parameters,
public Modify ( DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, uint clientHandle, double samplingInterval, uint queueSize, bool discardOldest, DataChangeFilter filter, Range range ) : ServiceResult
diagnosticsMasks DiagnosticsMasks
timestampsToReturn TimestampsToReturn
clientHandle uint
samplingInterval double
queueSize uint
discardOldest bool
filter DataChangeFilter
range Range
Результат ServiceResult

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

Called by the subscription to publish any notification.
public Publish ( OperationContext context, Queue notifications, Queue diagnostics ) : bool
context Opc.Ua.Server.OperationContext
notifications Queue
diagnostics Queue
Результат bool

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

Queues a new data change.
public QueueValue ( DataValue value, ServiceResult error ) : void
value DataValue
error ServiceResult
Результат void

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

Changes the monitoring mode.
public SetMonitoringMode ( MonitoringMode monitoringMode ) : MonitoringMode
monitoringMode MonitoringMode
Результат MonitoringMode

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

Sets a flag indicating that the semantics for the monitored node have changed.
The StatusCode for next value reported by the monitored item will have the SemanticsChanged bit set.
public SetSemanticsChanged ( ) : void
Результат void

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

Sets a flag indicating that the structure of the monitored node has changed.
The StatusCode for next value reported by the monitored item will have the StructureChanged bit set.
public SetStructureChanged ( ) : void
Результат void

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

Called when the attribute being monitored changed. Reads and queues the value.
public ValueChanged ( ISystemContext context ) : void
context ISystemContext
Результат void