C# Class Opc.Ua.Com.Server.ComHdaProxy

A base class for classes that implement an OPC COM specification.
Inheritance: ComProxy
Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Méthodes publiques

Méthode Description
Cancel ( int cancelId ) : int

Cancels the asynchronous operation.

ComHdaProxy ( ) : System

Initializes a new instance of the ComDaProxy class.

CreateBrowser ( ) : ComHdaBrowser

Creates a new browser.

DeleteAtTime ( System.DateTime timestamps, int serverHandles ) : int[]

Deletes the data at the specified times.

DeleteAtTime ( int transactionId, System.DateTime timestamps, int serverHandles, int &cancelId ) : int[]

Deletes the data at the specified times.

DeleteRaw ( System.DateTime startTime, System.DateTime endTime, int serverHandles ) : int[]

Deletes the raw data.

DeleteRaw ( int transactionId, System.DateTime startTime, System.DateTime endTime, int serverHandles, int &cancelId ) : int[]

Deletes the raw data.

GetItemHandles ( string itemIds, int clientHandles ) : Opc.Ua.Com.Server.HdaItemHandle[]

Creates handles for the items.

GetSupportedAggregates ( ) : List

Gets the supported aggregates.

InsertAnnotations ( int serverHandles, System.DateTime timestamps, Annotation annotations ) : int[]

Inserts the annotations.

InsertAnnotations ( int transactionId, int serverHandles, System.DateTime timestamps, Annotation annotations, int &cancelId ) : int[]

Inserts the annotations.

IsSupportedAttribute ( uint attributeId ) : bool

Determines whether the server supports the specified HDA attribute.

ReadAnnotations ( System.DateTime startTime, System.DateTime endTime, int serverHandles ) : List

Reads the annotations.

ReadAnnotations ( int transactionId, System.DateTime startTime, System.DateTime endTime, int serverHandles, int &cancelId ) : int[]

Reads the annotations.

ReadAtTime ( System.DateTime timestamps, int serverHandles ) : List

Reads the data at the specified times.

ReadAtTime ( int transactionId, System.DateTime timestamps, int serverHandles, int &cancelId ) : int[]

Reads the data at the specified times.

ReadAttributes ( System.DateTime startTime, System.DateTime endTime, int serverHandle, uint attributeIds ) : List

Reads the attributes.

ReadAttributes ( int transactionId, System.DateTime startTime, System.DateTime endTime, int serverHandle, uint attributeIds, int &cancelId ) : int[]

Reads the attributes.

ReadModified ( System.DateTime startTime, System.DateTime endTime, uint numValues, int serverHandles ) : List

Reads the modified data.

ReadModified ( int transactionId, System.DateTime startTime, System.DateTime endTime, uint numValues, int serverHandles, int &cancelId ) : int[]

Reads the modified data.

ReadProcessed ( System.DateTime startTime, System.DateTime endTime, long resampleInterval, int serverHandles, uint aggregateIds ) : List

Reads the processed data.

ReadProcessed ( int transactionId, System.DateTime startTime, System.DateTime endTime, long resampleInterval, int serverHandles, uint aggregateIds, int &cancelId ) : int[]

Reads the processed data.

ReadRaw ( System.DateTime startTime, System.DateTime endTime, uint numValues, bool returnBounds, int serverHandles ) : List

Reads the raw data.

ReadRaw ( int transactionId, System.DateTime startTime, System.DateTime endTime, uint numValues, bool returnBounds, int serverHandles, int &cancelId ) : int[]

Reads the raw data.

ReleaseItemHandles ( int serverHandles ) : int[]

Releases the item handles.

SetCallback ( IComHdaDataCallback callback ) : void

Sets the callback.

UpdateRaw ( PerformUpdateType updateType, int serverHandles, DaValue values ) : int[]

Updates the history.

UpdateRaw ( int transactionId, PerformUpdateType updateType, int serverHandles, DaValue values, int &cancelId ) : int[]

Updates the history.

ValidateItemIds ( string itemIds ) : int[]

Validates the item ids.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

OnSessionCreated ( ) : void

Called when a new session is created.

OnSessionReconected ( ) : void

Called when a session is reconnected.

Private Methods

Méthode Description
CreateReadRequests ( Session session, System.DateTime startTime, System.DateTime endTime, double resampleInterval, int serverHandles, uint aggregateIds, ReadProcessedDetails details ) : List

Creates the read requests.

CreateReadRequests ( Session session, System.DateTime startTime, System.DateTime endTime, int serverHandles, ReadRawModifiedDetails details ) : List

Creates the read requests.

CreateReadRequests ( Session session, System.DateTime startTime, System.DateTime endTime, int serverHandle, uint attributeIds, ReadRawModifiedDetails details ) : List

Creates the read requests.

CreateReadRequests ( Session session, System.DateTime startTime, System.DateTime endTime, uint numValues, bool returnBounds, int serverHandles, ReadRawModifiedDetails details ) : List

Creates the read requests.

CreateReadRequests ( Session session, System.DateTime timestamps, int serverHandles, ReadAtTimeDetails details ) : List

Creates the read requests.

CreateTransaction ( TransationType transationType, int transactionId, ExtensionObject details, List requests, bool asyncReportErrors, int &cancelId ) : int[]

Creates and queues a new transaction.

CreateTransaction ( TransationType transationType, int transactionId, List requests, int &cancelId ) : int[]

Creates and queues a new transaction.

CreateUpdateRequests ( Session session, System.DateTime startTime, System.DateTime endTime, int serverHandles ) : List

Creates the update requests.

CreateUpdateRequests ( Session session, System.DateTime timestamps, int serverHandles ) : List

Creates the update requests.

CreateUpdateRequests ( Session session, PerformUpdateType updateType, int serverHandles, DaValue values ) : List

Creates the update requests.

CreateUpdateRequests ( Session session, int serverHandles, System.DateTime timestamps, Annotation annotations ) : List

Creates the update requests.

DoCancel ( object state ) : void

Executes an asynchronous cancel operation.

DoRead ( object state ) : void

Executes an asynchronous read operation.

DoUpdate ( object state ) : void

Executes an asynchronous update operation.

GetAggregateFunctions ( Session session, NodeId objectId ) : List

Gets the aggregate functions object id.

GetAggregateFunctionsObjectId ( Session session ) : NodeId

Gets the aggregate functions object id.

GetAttributeValue ( Session session, ComNamespaceMapper mapper, uint attributeId, DataValue value ) : DaValue

Converts a UA value to an HDA attribute value.

MapPropertyReadStatusToErrorCode ( StatusCode statusCode ) : int

Converts a StatusCode returned during a Read to an HRESULT.

MapReadStatusToErrorCode ( StatusCode statusCode ) : int

Converts a StatusCode returned during a Read to an HRESULT.

MapUpdateStatusToErrorCode ( StatusCode statusCode ) : int

Converts a StatusCode returned during a HistoryUpdate to an HRESULT.

ProcessReadResults ( Session session, HistoryReadResult result, uint attributeId, List values, List modificationInfos ) : int

Processes the results of a history read operation.

ReadAttributes ( Session session, ExtensionObject extension, List requests, bool releaseContinuationPoints ) : bool

Reads the historical or current value for attributes.

ReadNext ( Session session, ExtensionObject details, List requests, bool releaseContinuationPoints ) : bool

Reads the next batch of values from the server.

SendCallback ( int transactionId, TransationType transactionType, List requests ) : bool

Sends the callback for a read request.

SendCallback ( int transactionId, TransationType transactionType, List requests ) : bool

Sends the callback for a read request.

UpdateAggregateDescriptions ( Session session, List aggregates ) : void

Updates the aggregate descriptions.

UpdateAggregateMappings ( Session session ) : void

Updates the aggregate mappings.

UpdateHistory ( Session session, List requests, bool checkOperationError ) : int[]

Calls the server and updates the history.

Method Details

Cancel() public méthode

Cancels the asynchronous operation.
public Cancel ( int cancelId ) : int
cancelId int
Résultat int

ComHdaProxy() public méthode

Initializes a new instance of the ComDaProxy class.
public ComHdaProxy ( ) : System
Résultat System

CreateBrowser() public méthode

Creates a new browser.
public CreateBrowser ( ) : ComHdaBrowser
Résultat ComHdaBrowser

DeleteAtTime() public méthode

Deletes the data at the specified times.
public DeleteAtTime ( System.DateTime timestamps, int serverHandles ) : int[]
timestamps System.DateTime
serverHandles int
Résultat int[]

DeleteAtTime() public méthode

Deletes the data at the specified times.
public DeleteAtTime ( int transactionId, System.DateTime timestamps, int serverHandles, int &cancelId ) : int[]
transactionId int
timestamps System.DateTime
serverHandles int
cancelId int
Résultat int[]

DeleteRaw() public méthode

Deletes the raw data.
public DeleteRaw ( System.DateTime startTime, System.DateTime endTime, int serverHandles ) : int[]
startTime System.DateTime
endTime System.DateTime
serverHandles int
Résultat int[]

DeleteRaw() public méthode

Deletes the raw data.
public DeleteRaw ( int transactionId, System.DateTime startTime, System.DateTime endTime, int serverHandles, int &cancelId ) : int[]
transactionId int
startTime System.DateTime
endTime System.DateTime
serverHandles int
cancelId int
Résultat int[]

Dispose() protected méthode

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetItemHandles() public méthode

Creates handles for the items.
public GetItemHandles ( string itemIds, int clientHandles ) : Opc.Ua.Com.Server.HdaItemHandle[]
itemIds string The item ids.
clientHandles int The client handles.
Résultat Opc.Ua.Com.Server.HdaItemHandle[]

GetSupportedAggregates() public méthode

Gets the supported aggregates.
public GetSupportedAggregates ( ) : List
Résultat List

InsertAnnotations() public méthode

Inserts the annotations.
public InsertAnnotations ( int serverHandles, System.DateTime timestamps, Annotation annotations ) : int[]
serverHandles int
timestamps System.DateTime
annotations Annotation
Résultat int[]

InsertAnnotations() public méthode

Inserts the annotations.
public InsertAnnotations ( int transactionId, int serverHandles, System.DateTime timestamps, Annotation annotations, int &cancelId ) : int[]
transactionId int
serverHandles int
timestamps System.DateTime
annotations Annotation
cancelId int
Résultat int[]

IsSupportedAttribute() public méthode

Determines whether the server supports the specified HDA attribute.
public IsSupportedAttribute ( uint attributeId ) : bool
attributeId uint The attribute id.
Résultat bool

OnSessionCreated() protected méthode

Called when a new session is created.
protected OnSessionCreated ( ) : void
Résultat void

OnSessionReconected() protected méthode

Called when a session is reconnected.
protected OnSessionReconected ( ) : void
Résultat void

ReadAnnotations() public méthode

Reads the annotations.
public ReadAnnotations ( System.DateTime startTime, System.DateTime endTime, int serverHandles ) : List
startTime System.DateTime
endTime System.DateTime
serverHandles int
Résultat List

ReadAnnotations() public méthode

Reads the annotations.
public ReadAnnotations ( int transactionId, System.DateTime startTime, System.DateTime endTime, int serverHandles, int &cancelId ) : int[]
transactionId int
startTime System.DateTime
endTime System.DateTime
serverHandles int
cancelId int
Résultat int[]

ReadAtTime() public méthode

Reads the data at the specified times.
public ReadAtTime ( System.DateTime timestamps, int serverHandles ) : List
timestamps System.DateTime
serverHandles int
Résultat List

ReadAtTime() public méthode

Reads the data at the specified times.
public ReadAtTime ( int transactionId, System.DateTime timestamps, int serverHandles, int &cancelId ) : int[]
transactionId int
timestamps System.DateTime
serverHandles int
cancelId int
Résultat int[]

ReadAttributes() public méthode

Reads the attributes.
public ReadAttributes ( System.DateTime startTime, System.DateTime endTime, int serverHandle, uint attributeIds ) : List
startTime System.DateTime
endTime System.DateTime
serverHandle int
attributeIds uint
Résultat List

ReadAttributes() public méthode

Reads the attributes.
public ReadAttributes ( int transactionId, System.DateTime startTime, System.DateTime endTime, int serverHandle, uint attributeIds, int &cancelId ) : int[]
transactionId int
startTime System.DateTime
endTime System.DateTime
serverHandle int
attributeIds uint
cancelId int
Résultat int[]

ReadModified() public méthode

Reads the modified data.
public ReadModified ( System.DateTime startTime, System.DateTime endTime, uint numValues, int serverHandles ) : List
startTime System.DateTime
endTime System.DateTime
numValues uint
serverHandles int
Résultat List

ReadModified() public méthode

Reads the modified data.
public ReadModified ( int transactionId, System.DateTime startTime, System.DateTime endTime, uint numValues, int serverHandles, int &cancelId ) : int[]
transactionId int
startTime System.DateTime
endTime System.DateTime
numValues uint
serverHandles int
cancelId int
Résultat int[]

ReadProcessed() public méthode

Reads the processed data.
public ReadProcessed ( System.DateTime startTime, System.DateTime endTime, long resampleInterval, int serverHandles, uint aggregateIds ) : List
startTime System.DateTime
endTime System.DateTime
resampleInterval long
serverHandles int
aggregateIds uint
Résultat List

ReadProcessed() public méthode

Reads the processed data.
public ReadProcessed ( int transactionId, System.DateTime startTime, System.DateTime endTime, long resampleInterval, int serverHandles, uint aggregateIds, int &cancelId ) : int[]
transactionId int
startTime System.DateTime
endTime System.DateTime
resampleInterval long
serverHandles int
aggregateIds uint
cancelId int
Résultat int[]

ReadRaw() public méthode

Reads the raw data.
public ReadRaw ( System.DateTime startTime, System.DateTime endTime, uint numValues, bool returnBounds, int serverHandles ) : List
startTime System.DateTime The start time.
endTime System.DateTime The end time.
numValues uint The num values.
returnBounds bool if set to true the bounds should be returned.
serverHandles int The server handles.
Résultat List

ReadRaw() public méthode

Reads the raw data.
public ReadRaw ( int transactionId, System.DateTime startTime, System.DateTime endTime, uint numValues, bool returnBounds, int serverHandles, int &cancelId ) : int[]
transactionId int
startTime System.DateTime
endTime System.DateTime
numValues uint
returnBounds bool
serverHandles int
cancelId int
Résultat int[]

ReleaseItemHandles() public méthode

Releases the item handles.
public ReleaseItemHandles ( int serverHandles ) : int[]
serverHandles int The server handles.
Résultat int[]

SetCallback() public méthode

Sets the callback.
public SetCallback ( IComHdaDataCallback callback ) : void
callback IComHdaDataCallback The callback.
Résultat void

UpdateRaw() public méthode

Updates the history.
public UpdateRaw ( PerformUpdateType updateType, int serverHandles, DaValue values ) : int[]
updateType PerformUpdateType
serverHandles int
values DaValue
Résultat int[]

UpdateRaw() public méthode

Updates the history.
public UpdateRaw ( int transactionId, PerformUpdateType updateType, int serverHandles, DaValue values, int &cancelId ) : int[]
transactionId int
updateType PerformUpdateType
serverHandles int
values DaValue
cancelId int
Résultat int[]

ValidateItemIds() public méthode

Validates the item ids.
public ValidateItemIds ( string itemIds ) : int[]
itemIds string The item ids.
Résultat int[]