C# Class Opc.Ua.Server.DataChangeMonitoredItem

Inheritance: IDataChangeMonitoredItem
ファイルを表示 Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

DataChangeMonitoredItem() public method

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
return System

DataChangeMonitoredItem() public method

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
return System

GetCreateResult() public method

Returns the results for the create request.
public GetCreateResult ( MonitoredItemCreateResult &result ) : ServiceResult
result MonitoredItemCreateResult
return ServiceResult

GetModifyResult() public method

Returns the results for the modify request.
public GetModifyResult ( MonitoredItemModifyResult &result ) : ServiceResult
result MonitoredItemModifyResult
return ServiceResult

Modify() public method

Modifies the monitored item parameters,
public Modify ( DiagnosticsMasks diagnosticsMasks, TimestampsToReturn timestampsToReturn, uint clientHandle, double samplingInterval ) : ServiceResult
diagnosticsMasks DiagnosticsMasks
timestampsToReturn TimestampsToReturn
clientHandle uint
samplingInterval double
return ServiceResult

Modify() public method

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
return ServiceResult

Publish() public method

Called by the subscription to publish any notification.
public Publish ( OperationContext context, Queue notifications, Queue diagnostics ) : bool
context OperationContext
notifications Queue
diagnostics Queue
return bool

QueueValue() public method

Queues a new data change.
public QueueValue ( DataValue value, ServiceResult error ) : void
value DataValue
error ServiceResult
return void

SetMonitoringMode() public method

Changes the monitoring mode.
public SetMonitoringMode ( MonitoringMode monitoringMode ) : MonitoringMode
monitoringMode MonitoringMode
return MonitoringMode

SetSemanticsChanged() public method

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
return void

SetStructureChanged() public method

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
return void

ValueChanged() public method

Called when the attribute being monitored changed. Reads and queues the value.
public ValueChanged ( ISystemContext context ) : void
context ISystemContext
return void