C# Класс Opc.Ua.Com.Server.ComDaGroupManager

A class that manages the COM DA groups.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Приватные методы

Метод Описание
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.

Описание методов

AddGroup() публичный Метод

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.
Результат ComDaGroup

ComDaGroupManager() публичный Метод

Initializes a new instance of the ComDaGroupManager class.
public ComDaGroupManager ( ComNamespaceMapper mapper, ComDaBrowseManager browser ) : System
mapper ComNamespaceMapper The mapper.
browser ComDaBrowseManager The browser.
Результат System

Dispose() публичный Метод

Frees any unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetGroupByHandle() публичный Метод

Gets the group by handle.
public GetGroupByHandle ( int serverHandle ) : ComDaGroup
serverHandle int The server handle.
Результат ComDaGroup

GetGroupByName() публичный Метод

Gets the group with the specified name.
public GetGroupByName ( string groupName ) : ComDaGroup
groupName string Name of the group.
Результат ComDaGroup

GetGroups() публичный Метод

Returns the current set of groups.
public GetGroups ( ) : Opc.Ua.Com.Server.ComDaGroup[]
Результат Opc.Ua.Com.Server.ComDaGroup[]

OnSessionRemoved() публичный Метод

Called when a session is removed.
public OnSessionRemoved ( ) : void
Результат void

OnSessionReplaced() публичный Метод

Called when a session is replaced.
public OnSessionReplaced ( ) : void
Результат void

Read() публичный Метод

Reads the attribute values from the server.
public Read ( ReadValueIdCollection valuesToRead ) : DaValue[]
valuesToRead ReadValueIdCollection The values to read.
Результат DaValue[]

RecoverSessionContext() публичный Метод

Recovers the session context.
public RecoverSessionContext ( ComDaGroup group ) : void
group ComDaGroup The group.
Результат void

RemoveGroup() публичный Метод

Removes the group.
public RemoveGroup ( ComDaGroup group ) : void
group ComDaGroup The group.
Результат void

SetGroupName() публичный Метод

Sets the name.
public SetGroupName ( ComDaGroup group, string groupName ) : void
group ComDaGroup The group.
groupName string Name of the group.
Результат void

SetLastUpdateTime() публичный Метод

Sets the last update time to the current time.
public SetLastUpdateTime ( ) : void
Результат void

UpdateItemEuInfo() публичный Метод

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.
Результат void

ValidateItems() публичный Метод

Validates the items.
public ValidateItems ( ComDaGroup group, ComDaCreateItemRequest requests ) : Opc.Ua.Com.Server.ComDaGroupItem[]
group ComDaGroup The group.
requests ComDaCreateItemRequest The requests.
Результат Opc.Ua.Com.Server.ComDaGroupItem[]

Write() публичный Метод

Reads the attribute values from the server.
public Write ( WriteValueCollection valuesToWrite ) : int[]
valuesToWrite WriteValueCollection The values to write.
Результат int[]