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

A wrapper for COM-DA group.
Inheritance: ComObject
Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Méthodes publiques

Méthode Description
ActivateItems ( bool active ) : void

Sets the active state for a set of items in a group.

AddItems ( ) : void

Adds all items to the group that have not already been added.

ApplyChanges ( ) : bool

Applys any changes to the group.

ComDaGroup ( ComDaClient server, bool callbacksRequired ) : System

Creates an empty group.

Create ( ) : void

Creates the group on the server if not already created.

CreateItem ( string itemId, int samplingInterval, float deadband, bool active ) : GroupItem

Creates the item.

Delete ( ) : void

Deletes the group on the server if it has been created.

ModifyGroup ( ) : int

Modifies the group.

ModifyItem ( GroupItem item, int samplingInterval, float deadband, bool active ) : bool

Modifies the item.

RemoveItem ( GroupItem item ) : bool

Removes the item from the group.

RemoveItems ( ) : void

Removes the items from the group that have been marked as deleted.

SetMonitoredItems ( GroupItem item, MonitoredItem monitoredItems ) : void

Sets the monitored items associated with the item.

SyncRead ( int serverHandles, int count ) : DaValue[]

Reads the values for a set of items.

SyncWrite ( int serverHandles, object values, int count ) : int[]

Writes the values for a set of items.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

ReleaseServer ( ) : void

Releases all references to the server.

Private Methods

Méthode Description
GetItemResults ( IntPtr &pInput, int count, bool deallocate ) : int[]

Unmarshals and deallocates a OPCITEMRESULT structures.

GetItemValues ( IntPtr &pInput, int count, bool deallocate ) : DaValue[]

Unmarshals and deallocates a OPCITEMSTATE structures.

GetItemValues ( int dwCount, object pvValues, short pwQualities, System pftTimeStamps, int pErrors ) : DaValue[]

Creates an array of item value result objects from the callback data.

OnDataChange ( int clientHandles, DaValue values ) : void

Called when a data change event arrives.

OnReadComplete ( int requestId, int clientHandles, DaValue values ) : void

Called when a asynchronous read completes.

OnWriteComplete ( int requestId, int clientHandles, int errors ) : void

Called when a asynchronous write completes.

Method Details

ActivateItems() public méthode

Sets the active state for a set of items in a group.
public ActivateItems ( bool active ) : void
active bool
Résultat void

AddItems() public méthode

Adds all items to the group that have not already been added.
public AddItems ( ) : void
Résultat void

ApplyChanges() public méthode

Applys any changes to the group.
public ApplyChanges ( ) : bool
Résultat bool

ComDaGroup() public méthode

Creates an empty group.
public ComDaGroup ( ComDaClient server, bool callbacksRequired ) : System
server ComDaClient The server that the group belongs to.
callbacksRequired bool if set to true if the group will received callbacks.
Résultat System

Create() public méthode

Creates the group on the server if not already created.
public Create ( ) : void
Résultat void

CreateItem() public méthode

Creates the item.
public CreateItem ( string itemId, int samplingInterval, float deadband, bool active ) : GroupItem
itemId string The item id.
samplingInterval int The sampling interval.
deadband float The deadband.
active bool if set to true [active].
Résultat GroupItem

Delete() public méthode

Deletes the group on the server if it has been created.
public Delete ( ) : void
Résultat void

Dispose() protected méthode

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

ModifyGroup() public méthode

Modifies the group.
public ModifyGroup ( ) : int
Résultat int

ModifyItem() public méthode

Modifies the item.
public ModifyItem ( GroupItem item, int samplingInterval, float deadband, bool active ) : bool
item GroupItem The item.
samplingInterval int The sampling interval.
deadband float The deadband.
active bool if set to true [active].
Résultat bool

ReleaseServer() protected méthode

Releases all references to the server.
protected ReleaseServer ( ) : void
Résultat void

RemoveItem() public méthode

Removes the item from the group.
public RemoveItem ( GroupItem item ) : bool
item GroupItem The item.
Résultat bool

RemoveItems() public méthode

Removes the items from the group that have been marked as deleted.
public RemoveItems ( ) : void
Résultat void

SetMonitoredItems() public méthode

Sets the monitored items associated with the item.
public SetMonitoredItems ( GroupItem item, MonitoredItem monitoredItems ) : void
item GroupItem The item.
monitoredItems Opc.Ua.Server.MonitoredItem The monitored items.
Résultat void

SyncRead() public méthode

Reads the values for a set of items.
public SyncRead ( int serverHandles, int count ) : DaValue[]
serverHandles int
count int
Résultat DaValue[]

SyncWrite() public méthode

Writes the values for a set of items.
public SyncWrite ( int serverHandles, object values, int count ) : int[]
serverHandles int
values object
count int
Résultat int[]