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

Stores a collection of write requests.
Inheritance: IDisposable
Mostra file Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
Add ( NodeState source, MonitoredItem monitoredItem ) : void

Adds the monitored item to the collection.

ApplyGroupChanges ( ComDaClient client ) : void

Applies any changes to the groups.

CreateItems ( ServerSystemContext context, IList monitoredItems ) : void

Creates subscription requests for monitored items.

DeleteItems ( ServerSystemContext context, IList monitoredItems ) : void

Deletes subscription requests for monitored items.

Dispose ( ) : void

Frees any unmanaged resources.

FindItemRequest ( string itemId, bool create ) : SubscribeItemRequest

Finds the item value request for the specifed item.

FindPropertyRequest ( string itemId, bool create ) : SubscribePropertyRequest

Finds the item properties request for the specifed item.

Modify ( NodeState source, MonitoredItem monitoredItem ) : void

Modifies the monitored item to the collection.

ModifyItems ( ServerSystemContext context, IList monitoredItems ) : void

Modifies subscription requests for monitored items.

RecreateItems ( ) : void

Recreates the items after a disconnect.

Remove ( SubscribeItemRequest request ) : bool

Removes the specified item request.

Remove ( SubscribePropertyRequest request ) : bool

Removes the specified property request.

Remove ( NodeState source, MonitoredItem monitoredItem ) : void

Removes the monitored item from the collection.

SubscribeRequestManager ( ServerSystemContext context, ComClient client, int propertySamplingInterval ) : System

Initializes a new instance of the SubscribeRequestManager class.

UpdateGroup ( ComDaClient client, SubscribeItemRequest request ) : void

Assigns a request to a group.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Private Methods

Method Description
Add ( DaItemState item, MonitoredItem monitoredItem ) : void

Adds a request for the specified item.

Add ( DaPropertyState item, MonitoredItem monitoredItem ) : void

Adds the specified item property.

Add ( PropertyState property, MonitoredItem monitoredItem ) : void

Adds the specified UA property.

Modify ( DaItemState item, MonitoredItem monitoredItem ) : void

Modifies a request for the specified item.

Modify ( DaPropertyState item, MonitoredItem monitoredItem ) : void

Modifies the specified item property.

Modify ( PropertyState property, MonitoredItem monitoredItem ) : void

Modifies the specified UA property.

OnScanProperties ( object state ) : void

Called when the scan properties timer expires.

Remove ( DaItemState item, MonitoredItem monitoredItem ) : void

Removes a request for the specified item.

Remove ( DaPropertyState item, MonitoredItem monitoredItem ) : void

Removes a request for the specified item property.

Remove ( PropertyState property, MonitoredItem monitoredItem ) : void

Removes a request for the specified UA property.

Method Details

Add() public method

Adds the monitored item to the collection.
public Add ( NodeState source, MonitoredItem monitoredItem ) : void
source NodeState The source.
monitoredItem Opc.Ua.Server.MonitoredItem The monitored item.
return void

ApplyGroupChanges() public method

Applies any changes to the groups.
public ApplyGroupChanges ( ComDaClient client ) : void
client ComDaClient
return void

CreateItems() public method

Creates subscription requests for monitored items.
public CreateItems ( ServerSystemContext context, IList monitoredItems ) : void
context Opc.Ua.Server.ServerSystemContext The context.
monitoredItems IList The monitored items.
return void

DeleteItems() public method

Deletes subscription requests for monitored items.
public DeleteItems ( ServerSystemContext context, IList monitoredItems ) : void
context Opc.Ua.Server.ServerSystemContext The context.
monitoredItems IList The monitored items.
return void

Dispose() public method

Frees any unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
return void

FindItemRequest() public method

Finds the item value request for the specifed item.
public FindItemRequest ( string itemId, bool create ) : SubscribeItemRequest
itemId string The item id.
create bool if set to true a new request is created if it does not exist.
return SubscribeItemRequest

FindPropertyRequest() public method

Finds the item properties request for the specifed item.
public FindPropertyRequest ( string itemId, bool create ) : SubscribePropertyRequest
itemId string The item id.
create bool if set to true a new request is created if it does not exist.
return SubscribePropertyRequest

Modify() public method

Modifies the monitored item to the collection.
public Modify ( NodeState source, MonitoredItem monitoredItem ) : void
source NodeState The source.
monitoredItem Opc.Ua.Server.MonitoredItem The monitored item.
return void

ModifyItems() public method

Modifies subscription requests for monitored items.
public ModifyItems ( ServerSystemContext context, IList monitoredItems ) : void
context Opc.Ua.Server.ServerSystemContext The context.
monitoredItems IList The monitored items.
return void

RecreateItems() public method

Recreates the items after a disconnect.
public RecreateItems ( ) : void
return void

Remove() public method

Removes the specified item request.
public Remove ( SubscribeItemRequest request ) : bool
request SubscribeItemRequest The request.
return bool

Remove() public method

Removes the specified property request.
public Remove ( SubscribePropertyRequest request ) : bool
request SubscribePropertyRequest The request.
return bool

Remove() public method

Removes the monitored item from the collection.
public Remove ( NodeState source, MonitoredItem monitoredItem ) : void
source NodeState The source.
monitoredItem Opc.Ua.Server.MonitoredItem The monitored item.
return void

SubscribeRequestManager() public method

Initializes a new instance of the SubscribeRequestManager class.
public SubscribeRequestManager ( ServerSystemContext context, ComClient client, int propertySamplingInterval ) : System
context ServerSystemContext The context.
client ComClient The COKM client wrapper.
propertySamplingInterval int The property sampling interval.
return System

UpdateGroup() public method

Assigns a request to a group.
public UpdateGroup ( ComDaClient client, SubscribeItemRequest request ) : void
client ComDaClient The client.
request SubscribeItemRequest The request.
return void