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

A class that manages the COM DA groups.
Inheritance: IDisposable
Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Méthodes publiques

Méthode Description
AddGroup ( string groupName, bool active, int updateRate, int clientHandle, int timeBias, float deadband, int lcid ) : ComDaGroup

Adds the group.

ComDaGroupManager ( ComNamespaceMapper mapper, ComDaBrowseManager browser ) : System

Initializes a new instance of the ComDaGroupManager class.

Dispose ( ) : void

Frees any unmanaged resources.

GetGroupByHandle ( int serverHandle ) : ComDaGroup

Gets the group by handle.

GetGroupByName ( string groupName ) : ComDaGroup

Gets the group with the specified name.

GetGroups ( ) : Opc.Ua.Com.Server.ComDaGroup[]

Returns the current set of groups.

OnSessionRemoved ( ) : void

Called when a session is removed.

OnSessionReplaced ( ) : void

Called when a session is replaced.

Read ( ReadValueIdCollection valuesToRead ) : DaValue[]

Reads the attribute values from the server.

RecoverSessionContext ( ComDaGroup group ) : void

Recovers the session context.

RemoveGroup ( ComDaGroup group ) : void

Removes the group.

SetGroupName ( ComDaGroup group, string groupName ) : void

Sets the name.

SetLastUpdateTime ( ) : void

Sets the last update time to the current time.

UpdateItemEuInfo ( ComDaGroup group, IList items ) : void

Updates the EUInfo for the items.

ValidateItems ( ComDaGroup group, ComDaCreateItemRequest requests ) : Opc.Ua.Com.Server.ComDaGroupItem[]

Validates the items.

Write ( WriteValueCollection valuesToWrite ) : int[]

Reads the attribute values from the server.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Private Methods

Méthode Description
TraceState ( string context ) : void

Dumps the current state of the browser.

ValidateItems ( Session session, ComDaGroup group, ComDaCreateItemRequest requests, Opc.Ua.Com.Server.ComDaGroupItem items, int start, int count ) : void

Validates the items by reading the attributes required to add them to the group.

Method Details

AddGroup() public méthode

Adds the group.
public AddGroup ( string groupName, bool active, int updateRate, int clientHandle, int timeBias, float deadband, int lcid ) : ComDaGroup
groupName string The group name.
active bool if set to true the group is active.
updateRate int The update rate.
clientHandle int The client handle.
timeBias int The time bias.
deadband float The deadband.
lcid int The lcid.
Résultat ComDaGroup

ComDaGroupManager() public méthode

Initializes a new instance of the ComDaGroupManager class.
public ComDaGroupManager ( ComNamespaceMapper mapper, ComDaBrowseManager browser ) : System
mapper ComNamespaceMapper The mapper.
browser ComDaBrowseManager The browser.
Résultat System

Dispose() public méthode

Frees any unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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

GetGroupByHandle() public méthode

Gets the group by handle.
public GetGroupByHandle ( int serverHandle ) : ComDaGroup
serverHandle int The server handle.
Résultat ComDaGroup

GetGroupByName() public méthode

Gets the group with the specified name.
public GetGroupByName ( string groupName ) : ComDaGroup
groupName string Name of the group.
Résultat ComDaGroup

GetGroups() public méthode

Returns the current set of groups.
public GetGroups ( ) : Opc.Ua.Com.Server.ComDaGroup[]
Résultat Opc.Ua.Com.Server.ComDaGroup[]

OnSessionRemoved() public méthode

Called when a session is removed.
public OnSessionRemoved ( ) : void
Résultat void

OnSessionReplaced() public méthode

Called when a session is replaced.
public OnSessionReplaced ( ) : void
Résultat void

Read() public méthode

Reads the attribute values from the server.
public Read ( ReadValueIdCollection valuesToRead ) : DaValue[]
valuesToRead ReadValueIdCollection The values to read.
Résultat DaValue[]

RecoverSessionContext() public méthode

Recovers the session context.
public RecoverSessionContext ( ComDaGroup group ) : void
group ComDaGroup The group.
Résultat void

RemoveGroup() public méthode

Removes the group.
public RemoveGroup ( ComDaGroup group ) : void
group ComDaGroup The group.
Résultat void

SetGroupName() public méthode

Sets the name.
public SetGroupName ( ComDaGroup group, string groupName ) : void
group ComDaGroup The group.
groupName string Name of the group.
Résultat void

SetLastUpdateTime() public méthode

Sets the last update time to the current time.
public SetLastUpdateTime ( ) : void
Résultat void

UpdateItemEuInfo() public méthode

Updates the EUInfo for the items.
public UpdateItemEuInfo ( ComDaGroup group, IList items ) : void
group ComDaGroup The group.
items IList The items. Null entries are ignored.
Résultat void

ValidateItems() public méthode

Validates the items.
public ValidateItems ( ComDaGroup group, ComDaCreateItemRequest requests ) : Opc.Ua.Com.Server.ComDaGroupItem[]
group ComDaGroup The group.
requests ComDaCreateItemRequest The requests.
Résultat Opc.Ua.Com.Server.ComDaGroupItem[]

Write() public méthode

Reads the attribute values from the server.
public Write ( WriteValueCollection valuesToWrite ) : int[]
valuesToWrite WriteValueCollection The values to write.
Résultat int[]