C# Class Opc.Ua.Com.Client.AeTypeCache

Stores the type information provided by the AE server.
Datei anzeigen Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
CreateInstance ( ServerSystemContext context, AeEventTypeState eventType ) : BaseEventState

Creates an instance of an event.

FindType ( ServerSystemContext context, Opc.Ua.NodeId nodeId ) : AeEventTypeState

Returns the type identified by the category id and condition name.

GetMappingNode ( ServerSystemContext context, Opc.Ua.NodeId nodeId ) : AeEventTypeMappingState

Returns the node for the event type mapping identified by the node id.

IsKnownName ( string description ) : bool

Checks for alternate spellings of a well known name defined by the AE specification.

LoadEventType ( ComAeClient client, int eventTypeId ) : void

Fetches the event categories for the specified event type.

LoadEventTypes ( ComAeClient client ) : void

Fetches the event type information from the AE server.

UpdateCache ( ServerSystemContext context, ushort namespaceIndex ) : void

Updates the event types in cache with the most recent info fetched from the AE server.

Private Methods

Method Description
DetermineMapping ( EventType eventType ) : void

Uses the recommended names in the AE specification to map to predefined UA event types.

LoadConditionEvent ( ComAeClient client, int eventTypeId, int categoryId, string description, List attributes ) : void
LoadEventAttributes ( ComAeClient client, int eventTypeId, int categoryId ) : List

Fetches the attributes for the category from the AE server.

Method Details

CreateInstance() public method

Creates an instance of an event.
public CreateInstance ( ServerSystemContext context, AeEventTypeState eventType ) : BaseEventState
context Opc.Ua.Server.ServerSystemContext
eventType AeEventTypeState
return Opc.Ua.BaseEventState

FindType() public method

Returns the type identified by the category id and condition name.
public FindType ( ServerSystemContext context, Opc.Ua.NodeId nodeId ) : AeEventTypeState
context Opc.Ua.Server.ServerSystemContext
nodeId Opc.Ua.NodeId
return AeEventTypeState

GetMappingNode() public method

Returns the node for the event type mapping identified by the node id.
public GetMappingNode ( ServerSystemContext context, Opc.Ua.NodeId nodeId ) : AeEventTypeMappingState
context Opc.Ua.Server.ServerSystemContext
nodeId Opc.Ua.NodeId
return AeEventTypeMappingState

IsKnownName() public static method

Checks for alternate spellings of a well known name defined by the AE specification.
public static IsKnownName ( string description ) : bool
description string
return bool

LoadEventType() public method

Fetches the event categories for the specified event type.
public LoadEventType ( ComAeClient client, int eventTypeId ) : void
client ComAeClient
eventTypeId int
return void

LoadEventTypes() public method

Fetches the event type information from the AE server.
public LoadEventTypes ( ComAeClient client ) : void
client ComAeClient
return void

UpdateCache() public method

Updates the event types in cache with the most recent info fetched from the AE server.
public UpdateCache ( ServerSystemContext context, ushort namespaceIndex ) : void
context Opc.Ua.Server.ServerSystemContext
namespaceIndex ushort
return void