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

Maintains a shared cache of browse information.
Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat IList

BrowseForElements() public méthode

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.
Résultat Queue

BrowseForNames() public méthode

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.
Résultat IList

ComDaBrowseCache() public méthode

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

FindChild() public méthode

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.
Résultat ComDaBrowseElement

FindElement() public méthode

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

FindParent() public méthode

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

GetAvailableProperties() public méthode

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.
Résultat IList

GetPropertyValues() public méthode

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