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

Maintains a shared cache of browse information.
Mostrar archivo Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
BrowseFlat ( Session session, string itemId, string nameFilter, short dataTypeFilter, int accessRightsFilter ) : IList

Browses for children of the specified item.

BrowseForElements ( Session session, string itemId ) : Queue

Browses for the children of the specified item.

BrowseForNames ( Session session, string itemId, BrowseElementFilter elementFilter, string nameFilter, short dataTypeFilter, int accessRightsFilter ) : IList

Browses for children of the specified item.

ComDaBrowseCache ( ComNamespaceMapper mapper ) : System

Initializes a new instance of the ComDaBrowseCache class.

FindChild ( Session session, string itemId, string childName ) : ComDaBrowseElement

Finds the child with the specified name.

FindElement ( Session session, string itemId ) : ComDaBrowseElement

Finds the element.

FindParent ( Session session, string itemId ) : ComDaBrowseElement

Finds the parent.

GetAvailableProperties ( Session session, string itemId ) : IList

Gets the available properties for the specified item.

GetPropertyValues ( Session session, ComDaReadPropertiesRequest requests ) : IList

Gets the properties.

Private Methods

Method Description
Browse ( Session session, BrowseDescriptionCollection nodesToBrowse ) : BrowseResultCollection

Sends the browse request to the server.

BrowseBlock ( Session session, BrowseDescriptionCollection nodesToBrowse ) : BrowseResultCollection

Sends the browse request to the server.

BrowseFlat ( Session session, BrowseElement parent, string nameFilter, short dataTypeFilter, int accessRightsFilter, BrowseElement>.Dictionary branches, List hits ) : void

Recursively browses the address space.

CreateBrowseElement ( Session session, NodeId nodeId ) : BrowseElement

Creates the browse element.

GetPropertyValue ( BrowseElement element, int propertyId ) : DaValue

Gets the property value from the browse element.

Lookup ( Session session, string itemId ) : BrowseElement

Looks up the cached element using the specified session.

LookupChildElements ( Session session, BrowseElement parent ) : List

Creates the children of the browse element.

PrepareBrowseElementBrowseRequest ( NodeId nodeId, BrowseDescriptionCollection nodesToBrowse ) : int

Prepares a browse request for the children of a node.

PrepareBrowseElementReadRequest ( NodeId nodeId, ReferenceDescription>.Dictionary childrenByName, ReadValueIdCollection nodesToRead, NodeClass nodeClass, bool onlyEssentialProperties ) : int

Prepares a read request for the browse element properties.

Read ( Session session, ReadValueIdCollection nodesToRead ) : DataValueCollection

Sends the read request to the server.

SetElementMasks ( BrowseElement element ) : void

Sets the element masks.

TraceState ( string context ) : void

Dumps the current state of the browser.

UpdateBrowseElement ( BrowseElement element, BrowseDescriptionCollection nodesToBrowse, BrowseResultCollection results, int first ) : bool

Updates the browse element with the children returned in the browse results.

UpdateBrowseElement ( ITypeTable typeTree, BrowseElement element, ReadValueIdCollection nodesToRead, DataValueCollection values, NodeClass nodeClass, bool onlyEssentialProperties, int first ) : bool

Updates the browse element with the properties return in the read results.

UpdateReadPropertyRequest ( ComDaReadPropertiesRequest request, BrowseElement element, int propertyIds ) : void

Updates the read property request with the property values.

Method Details

BrowseFlat() public method

Browses for children of the specified item.
public BrowseFlat ( Session session, string itemId, string nameFilter, short dataTypeFilter, int accessRightsFilter ) : IList
session Opc.Ua.Client.Session The session.
itemId string The item id.
nameFilter string The name filter.
dataTypeFilter short The data type filter.
accessRightsFilter int The access rights filter.
return IList

BrowseForElements() public method

Browses for the children of the specified item.
public BrowseForElements ( Session session, string itemId ) : Queue
session Opc.Ua.Client.Session The session.
itemId string The item id.
return Queue

BrowseForNames() public method

Browses for children of the specified item.
public BrowseForNames ( Session session, string itemId, BrowseElementFilter elementFilter, string nameFilter, short dataTypeFilter, int accessRightsFilter ) : IList
session Opc.Ua.Client.Session The session.
itemId string The item id.
elementFilter BrowseElementFilter The element filter.
nameFilter string The name filter.
dataTypeFilter short The data type filter.
accessRightsFilter int The access rights filter.
return IList

ComDaBrowseCache() public method

Initializes a new instance of the ComDaBrowseCache class.
public ComDaBrowseCache ( ComNamespaceMapper mapper ) : System
mapper ComNamespaceMapper The object used to map namespace indexes.
return System

FindChild() public method

Finds the child with the specified name.
public FindChild ( Session session, string itemId, string childName ) : ComDaBrowseElement
session Opc.Ua.Client.Session The session.
itemId string The item id.
childName string Name of the child.
return ComDaBrowseElement

FindElement() public method

Finds the element.
public FindElement ( Session session, string itemId ) : ComDaBrowseElement
session Opc.Ua.Client.Session The session.
itemId string The item id.
return ComDaBrowseElement

FindParent() public method

Finds the parent.
public FindParent ( Session session, string itemId ) : ComDaBrowseElement
session Opc.Ua.Client.Session The session.
itemId string The item id.
return ComDaBrowseElement

GetAvailableProperties() public method

Gets the available properties for the specified item.
public GetAvailableProperties ( Session session, string itemId ) : IList
session Opc.Ua.Client.Session The session.
itemId string The item id.
return IList

GetPropertyValues() public method

Gets the properties.
public GetPropertyValues ( Session session, ComDaReadPropertiesRequest requests ) : IList
session Opc.Ua.Client.Session The session.
requests ComDaReadPropertiesRequest The requests.
return IList