C# Класс Quickstarts.AlarmConditionServer.AlarmConditionServerNodeManager

A node manager for a simple server that exposes several Areas, Sources and Conditions.
This node manager presumes that the information model consists of a hierachy of predefined Areas with a number of Sources contained within them. Each individual Source is identified by a fully qualified path. The underlying system knows how to access the source configuration when it is provided the fully qualified path.
Наследование: QuickstartNodeManager
Показать файл Открыть проект

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

Метод Описание
AlarmConditionServerNodeManager ( IServerInternal server, ApplicationConfiguration configuration ) : System

Initializes the node manager.

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.

DeleteAddressSpace ( ) : void

Frees any resources allocated for the address space.

New ( ISystemContext context, NodeState node ) : Opc.Ua.NodeId

Creates the NodeId for the specified node.

This method is called by the NodeState.Create() method which initializes a Node from the type model. During initialization a number of child nodes are created and need to have NodeIds assigned to them. This implementation constructs NodeIds by constructing strings. Other implementations could assign unique integers or Guids and save the new Node in a dictionary for later lookup.

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

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

An overrideable version of the Dispose.

GetManagerHandle ( ServerSystemContext context, Opc.Ua.NodeId nodeId, NodeState>.IDictionary cache ) : NodeHandle

Returns a unique handle for the node.

ValidateNode ( ServerSystemContext context, NodeHandle handle, NodeState>.IDictionary cache ) : NodeState

Verifies that the specified node exists.

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

Метод Описание
CreateAndIndexAreas ( AreaState parent, AreaConfiguration configuration ) : AreaState

Creates and indexes an area defined for the server.

OnRaiseSystemEvents ( object state ) : void

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

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

Initializes the node manager.
public AlarmConditionServerNodeManager ( IServerInternal server, ApplicationConfiguration configuration ) : System
server IServerInternal
configuration ApplicationConfiguration
Результат System

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

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

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

Frees any resources allocated for the address space.
public DeleteAddressSpace ( ) : void
Результат void

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

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

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

Returns a unique handle for the node.
protected GetManagerHandle ( ServerSystemContext context, Opc.Ua.NodeId nodeId, NodeState>.IDictionary cache ) : NodeHandle
context Opc.Ua.Server.ServerSystemContext
nodeId Opc.Ua.NodeId
cache NodeState>.IDictionary
Результат Opc.Ua.Server.NodeHandle

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

Creates the NodeId for the specified node.
This method is called by the NodeState.Create() method which initializes a Node from the type model. During initialization a number of child nodes are created and need to have NodeIds assigned to them. This implementation constructs NodeIds by constructing strings. Other implementations could assign unique integers or Guids and save the new Node in a dictionary for later lookup.
public New ( ISystemContext context, NodeState node ) : Opc.Ua.NodeId
context ISystemContext The context.
node NodeState The node.
Результат Opc.Ua.NodeId

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

Verifies that the specified node exists.
protected ValidateNode ( ServerSystemContext context, NodeHandle handle, NodeState>.IDictionary cache ) : NodeState
context Opc.Ua.Server.ServerSystemContext
handle Opc.Ua.Server.NodeHandle
cache NodeState>.IDictionary
Результат NodeState