C# Class FileSystem.FileSystemNodeManager

A node manager for a variety of test data.
Inheritance: Opc.Ua.Sample.SampleNodeManager
Afficher le fichier Open project: OPCFoundation/UA-.NET

Méthodes publiques

Méthode Description
CreateAddressSpace ( IDictionary externalReferences ) : void

Does any initialization required before the address space can be used.

The externalReferences is an out parameter that allows the node manager to link to nodes in other node managers. For example, the 'Objects' node is managed by the CoreNodeManager and should have a reference to the root folder node(s) exposed by this node manager.

FileSystemNodeManager ( Opc server, string systemRoot ) : System

Initializes the node manager.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

GetManagerHandle ( ISystemContext context, Opc.Ua.NodeId nodeId, NodeState>.IDictionary cache ) : object

Returns a unique handle for the node.

This must efficiently determine whether the node belongs to the node manager. If it does belong to NodeManager it should return a handle that does not require the NodeId to be validated again when the handle is passed into other methods such as 'Read' or 'Write'.

LoadPredefinedNodes ( ISystemContext context ) : NodeStateCollection

Loads a node set from a file or resource and addes them to the set of predefined nodes.

OnCreateMonitoredItem ( ISystemContext systemContext, MonitoredItemCreateRequest itemToCreate, MonitoredNode monitoredNode, DataChangeMonitoredItem monitoredItem ) : void

Does any processing after a monitored item is created.

OnDeleteMonitoredItem ( ISystemContext systemContext, MonitoredNode monitoredNode, DataChangeMonitoredItem monitoredItem ) : void

Does any processing after a monitored item is deleted.

OnModifyMonitoredItem ( ISystemContext systemContext, MonitoredItemModifyRequest itemToModify, MonitoredNode monitoredNode, DataChangeMonitoredItem monitoredItem, double previousSamplingInterval ) : void

Does any processing after a monitored item is created.

OnSetMonitoringMode ( ISystemContext systemContext, MonitoredNode monitoredNode, DataChangeMonitoredItem monitoredItem, MonitoringMode previousMode, MonitoringMode currentMode ) : void

Does any processing after a monitored item is created.

Private Methods

Méthode Description
AddNodeHierarchyToCache ( ISystemContext context, NodeState root ) : void

Adds the hierachy of nodes to the cache.

RemoveNodeHierarchyFromCache ( ISystemContext context, NodeState root ) : void

Removes the hierachy of nodes from the cache.

StartMonitoring ( ISystemContext context, MonitoredNode monitoredNode ) : void

Returns true if the system must be scanning to provide updates for the monitored item.

StopMonitoring ( ISystemContext context, MonitoredNode monitoredNode ) : void

Returns true if the system must be scanning to provide updates for the monitored item.

Method Details

CreateAddressSpace() public méthode

Does any initialization required before the address space can be used.
The externalReferences is an out parameter that allows the node manager to link to nodes in other node managers. For example, the 'Objects' node is managed by the CoreNodeManager and should have a reference to the root folder node(s) exposed by this node manager.
public CreateAddressSpace ( IDictionary externalReferences ) : void
externalReferences IDictionary
Résultat void

Dispose() protected méthode

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

FileSystemNodeManager() public méthode

Initializes the node manager.
public FileSystemNodeManager ( Opc server, string systemRoot ) : System
server Opc
systemRoot string
Résultat System

GetManagerHandle() protected méthode

Returns a unique handle for the node.
This must efficiently determine whether the node belongs to the node manager. If it does belong to NodeManager it should return a handle that does not require the NodeId to be validated again when the handle is passed into other methods such as 'Read' or 'Write'.
protected GetManagerHandle ( ISystemContext context, Opc.Ua.NodeId nodeId, NodeState>.IDictionary cache ) : object
context ISystemContext
nodeId Opc.Ua.NodeId
cache NodeState>.IDictionary
Résultat object

LoadPredefinedNodes() protected méthode

Loads a node set from a file or resource and addes them to the set of predefined nodes.
protected LoadPredefinedNodes ( ISystemContext context ) : NodeStateCollection
context ISystemContext
Résultat NodeStateCollection

OnCreateMonitoredItem() protected méthode

Does any processing after a monitored item is created.
protected OnCreateMonitoredItem ( ISystemContext systemContext, MonitoredItemCreateRequest itemToCreate, MonitoredNode monitoredNode, DataChangeMonitoredItem monitoredItem ) : void
systemContext ISystemContext
itemToCreate Opc.Ua.MonitoredItemCreateRequest
monitoredNode Opc.Ua.Sample.MonitoredNode
monitoredItem Opc.Ua.Sample.DataChangeMonitoredItem
Résultat void

OnDeleteMonitoredItem() protected méthode

Does any processing after a monitored item is deleted.
protected OnDeleteMonitoredItem ( ISystemContext systemContext, MonitoredNode monitoredNode, DataChangeMonitoredItem monitoredItem ) : void
systemContext ISystemContext
monitoredNode Opc.Ua.Sample.MonitoredNode
monitoredItem Opc.Ua.Sample.DataChangeMonitoredItem
Résultat void

OnModifyMonitoredItem() protected méthode

Does any processing after a monitored item is created.
protected OnModifyMonitoredItem ( ISystemContext systemContext, MonitoredItemModifyRequest itemToModify, MonitoredNode monitoredNode, DataChangeMonitoredItem monitoredItem, double previousSamplingInterval ) : void
systemContext ISystemContext
itemToModify Opc.Ua.MonitoredItemModifyRequest
monitoredNode Opc.Ua.Sample.MonitoredNode
monitoredItem Opc.Ua.Sample.DataChangeMonitoredItem
previousSamplingInterval double
Résultat void

OnSetMonitoringMode() protected méthode

Does any processing after a monitored item is created.
protected OnSetMonitoringMode ( ISystemContext systemContext, MonitoredNode monitoredNode, DataChangeMonitoredItem monitoredItem, MonitoringMode previousMode, MonitoringMode currentMode ) : void
systemContext ISystemContext
monitoredNode Opc.Ua.Sample.MonitoredNode
monitoredItem Opc.Ua.Sample.DataChangeMonitoredItem
previousMode MonitoringMode
currentMode MonitoringMode
Résultat void