C# Класс Opc.Ua.Client.MonitoredItem

Наследование: ICloneable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Initialize void
Initialize void
UseDefaultEventFilter void
ValidateFilter void

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

Метод Описание
Clone ( ) : object

Creates a deep copy of the object.

DequeueEvents ( ) : IList

Read all events in the cache queue.

DequeueValues ( ) : IList

Read all values in the cache queue.

GetEventTime ( EventFieldList eventFields ) : System.DateTime

Returns value of the field name containing the event type.

GetEventType ( EventFieldList eventFields ) : INode

Returns value of the field name containing the event type.

GetFieldName ( int index ) : string

Returns the field name the specified SelectClause in the EventFilter.

GetFieldValue ( EventFieldList eventFields, NodeId eventTypeId, IList browsePath, uint attributeId ) : object

Returns value of the field name containing the event type.

GetFieldValue ( EventFieldList eventFields, NodeId eventTypeId, QualifiedName browseName ) : object

Returns value of the field name containing the event type.

GetFieldValue ( EventFieldList eventFields, NodeId eventTypeId, string browsePath, uint attributeId ) : object

Returns value of the field name containing the event type.

GetServiceResult ( IEncodeable notification ) : ServiceResult

The service result for a data change notification.

GetServiceResult ( IEncodeable notification, int index ) : ServiceResult

The service result for a field in an notification (the field must contain a Status object).

MonitoredItem ( ) : System

Initializes a new instance of the MonitoredItem class.

MonitoredItem ( MonitoredItem template ) : System

Initializes a new instance of the MonitoredItem class.

MonitoredItem ( MonitoredItem template, bool copyEventHandlers ) : System

Initializes a new instance of the MonitoredItem class.

MonitoredItem ( uint clientHandle ) : System

Initializes a new instance of the MonitoredItem class.

SaveValueInCache ( IEncodeable newValue ) : void

Saves a data change or event in the cache.

SetCreateResult ( MonitoredItemCreateRequest request, MonitoredItemCreateResult result, int index, DiagnosticInfoCollection diagnosticInfos, ResponseHeader responseHeader ) : void

Updates the object with the results of a create monitored item request.

SetDeleteResult ( StatusCode result, int index, DiagnosticInfoCollection diagnosticInfos, ResponseHeader responseHeader ) : void

Updates the object with the results of a modify monitored item request.

SetError ( ServiceResult error ) : void

Sets the error status for the monitored item.

SetModifyResult ( MonitoredItemModifyRequest request, MonitoredItemModifyResult result, int index, DiagnosticInfoCollection diagnosticInfos, ResponseHeader responseHeader ) : void

Updates the object with the results of a modify monitored item request.

SetResolvePathResult ( BrowsePathResult result, int index, DiagnosticInfoCollection diagnosticInfos, ResponseHeader responseHeader ) : void

Updates the object with the results of a translate browse path request.

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

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

Sets the private members to default values.

Initialize ( StreamingContext context ) : void
UseDefaultEventFilter ( ) : void

Sets the default event filter.

ValidateFilter ( NodeClass nodeClass, MonitoringFilter filter ) : void

Throws an exception if the flter cannot be used with the node class.

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

Clone() публичный метод

Creates a deep copy of the object.
public Clone ( ) : object
Результат object

DequeueEvents() публичный метод

Read all events in the cache queue.
public DequeueEvents ( ) : IList
Результат IList

DequeueValues() публичный метод

Read all values in the cache queue.
public DequeueValues ( ) : IList
Результат IList

GetEventTime() публичный метод

Returns value of the field name containing the event type.
public GetEventTime ( EventFieldList eventFields ) : System.DateTime
eventFields EventFieldList
Результат System.DateTime

GetEventType() публичный метод

Returns value of the field name containing the event type.
public GetEventType ( EventFieldList eventFields ) : INode
eventFields EventFieldList
Результат INode

GetFieldName() публичный метод

Returns the field name the specified SelectClause in the EventFilter.
public GetFieldName ( int index ) : string
index int
Результат string

GetFieldValue() публичный метод

Returns value of the field name containing the event type.
public GetFieldValue ( EventFieldList eventFields, NodeId eventTypeId, IList browsePath, uint attributeId ) : object
eventFields EventFieldList
eventTypeId NodeId
browsePath IList
attributeId uint
Результат object

GetFieldValue() публичный метод

Returns value of the field name containing the event type.
public GetFieldValue ( EventFieldList eventFields, NodeId eventTypeId, QualifiedName browseName ) : object
eventFields EventFieldList
eventTypeId NodeId
browseName QualifiedName
Результат object

GetFieldValue() публичный метод

Returns value of the field name containing the event type.
public GetFieldValue ( EventFieldList eventFields, NodeId eventTypeId, string browsePath, uint attributeId ) : object
eventFields EventFieldList
eventTypeId NodeId
browsePath string
attributeId uint
Результат object

GetServiceResult() публичный статический метод

The service result for a data change notification.
public static GetServiceResult ( IEncodeable notification ) : ServiceResult
notification IEncodeable
Результат ServiceResult

GetServiceResult() публичный статический метод

The service result for a field in an notification (the field must contain a Status object).
public static GetServiceResult ( IEncodeable notification, int index ) : ServiceResult
notification IEncodeable
index int
Результат ServiceResult

MonitoredItem() публичный метод

Initializes a new instance of the MonitoredItem class.
public MonitoredItem ( ) : System
Результат System

MonitoredItem() публичный метод

Initializes a new instance of the MonitoredItem class.
public MonitoredItem ( MonitoredItem template ) : System
template MonitoredItem The template used to specify the monitoring parameters.
Результат System

MonitoredItem() публичный метод

Initializes a new instance of the MonitoredItem class.
public MonitoredItem ( MonitoredItem template, bool copyEventHandlers ) : System
template MonitoredItem The template used to specify the monitoring parameters.
copyEventHandlers bool if set to true the event handlers are copied.
Результат System

MonitoredItem() публичный метод

Initializes a new instance of the MonitoredItem class.
public MonitoredItem ( uint clientHandle ) : System
clientHandle uint The client handle. The caller must ensure it uniquely identifies the monitored item.
Результат System

SaveValueInCache() публичный метод

Saves a data change or event in the cache.
public SaveValueInCache ( IEncodeable newValue ) : void
newValue IEncodeable
Результат void

SetCreateResult() публичный метод

Updates the object with the results of a create monitored item request.
public SetCreateResult ( MonitoredItemCreateRequest request, MonitoredItemCreateResult result, int index, DiagnosticInfoCollection diagnosticInfos, ResponseHeader responseHeader ) : void
request MonitoredItemCreateRequest
result MonitoredItemCreateResult
index int
diagnosticInfos DiagnosticInfoCollection
responseHeader ResponseHeader
Результат void

SetDeleteResult() публичный метод

Updates the object with the results of a modify monitored item request.
public SetDeleteResult ( StatusCode result, int index, DiagnosticInfoCollection diagnosticInfos, ResponseHeader responseHeader ) : void
result StatusCode
index int
diagnosticInfos DiagnosticInfoCollection
responseHeader ResponseHeader
Результат void

SetError() публичный метод

Sets the error status for the monitored item.
public SetError ( ServiceResult error ) : void
error ServiceResult
Результат void

SetModifyResult() публичный метод

Updates the object with the results of a modify monitored item request.
public SetModifyResult ( MonitoredItemModifyRequest request, MonitoredItemModifyResult result, int index, DiagnosticInfoCollection diagnosticInfos, ResponseHeader responseHeader ) : void
request MonitoredItemModifyRequest
result MonitoredItemModifyResult
index int
diagnosticInfos DiagnosticInfoCollection
responseHeader ResponseHeader
Результат void

SetResolvePathResult() публичный метод

Updates the object with the results of a translate browse path request.
public SetResolvePathResult ( BrowsePathResult result, int index, DiagnosticInfoCollection diagnosticInfos, ResponseHeader responseHeader ) : void
result BrowsePathResult
index int
diagnosticInfos DiagnosticInfoCollection
responseHeader ResponseHeader
Результат void