C# Class Quickstarts.ReferenceServer.EmptyNodeManager

A node manager for a server that exposes several variables.
Inheritance: Opc.Ua.Server.CustomNodeManager2
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.

DeleteAddressSpace ( ) : void

Frees any resources allocated for the address space.

EmptyNodeManager ( IServerInternal server, ApplicationConfiguration configuration ) : System

Initializes the node manager.

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

Creates the NodeId for the specified node.

Méthodes protégées

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

Private Methods

Méthode Description
CreateAnalogItemVariable ( NodeState parent, string path, string name, BuiltInType dataType, int valueRank ) : DataItemState

Creates a new variable.

CreateAnalogItemVariable ( NodeState parent, string path, string name, BuiltInType dataType, int valueRank, object initialValues ) : DataItemState
CreateAnalogItemVariable ( NodeState parent, string path, string name, BuiltInType dataType, int valueRank, object initialValues, Range customRange ) : DataItemState
CreateAnalogItemVariable ( NodeState parent, string path, string name, Opc.Ua.NodeId dataType, int valueRank, object initialValues, Range customRange ) : DataItemState
CreateDataItemVariable ( NodeState parent, string path, string name, BuiltInType dataType, int valueRank ) : DataItemState

Creates a new variable.

CreateDataItemVariables ( NodeState parent, string path, string name, BuiltInType dataType, int valueRank, UInt16 numVariables ) : DataItemState[]
CreateDataType ( NodeState parent, IDictionary externalReferences, string path, string name ) : DataTypeState

Creates a new data type.

CreateDynamicVariable ( NodeState parent, string path, string name, BuiltInType dataType, int valueRank ) : BaseDataVariableState

Creates a new variable.

CreateDynamicVariable ( NodeState parent, string path, string name, Opc.Ua.NodeId dataType, int valueRank ) : BaseDataVariableState

Creates a new variable.

CreateDynamicVariables ( NodeState parent, string path, string name, BuiltInType dataType, int valueRank, uint numVariables ) : BaseDataVariableState[]
CreateDynamicVariables ( NodeState parent, string path, string name, Opc.Ua.NodeId dataType, int valueRank, uint numVariables ) : BaseDataVariableState[]
CreateFolder ( NodeState parent, string path, string name ) : FolderState

Creates a new folder.

CreateMeshVariable ( NodeState parent, string path, string name ) : BaseDataVariableState

Creates a new variable.

CreateMethod ( NodeState parent, string path, string name ) : MethodState

Creates a new method.

CreateMultiStateDiscreteItemVariable ( NodeState parent, string path, string name ) : DataItemState

Creates a new variable.

CreateMultiStateValueDiscreteItemVariable ( NodeState parent, string path, string name ) : DataItemState

Creates a new variable.

CreateObject ( NodeState parent, string path, string name ) : BaseObjectState

Creates a new object.

CreateObjectType ( NodeState parent, IDictionary externalReferences, string path, string name ) : BaseObjectTypeState

Creates a new object type.

CreateReferenceType ( NodeState parent, IDictionary externalReferences, string path, string name ) : ReferenceTypeState

Creates a new reference type.

CreateTwoStateDiscreteItemVariable ( NodeState parent, string path, string name, string trueState, string falseState ) : DataItemState

Creates a new variable.

CreateVariable ( NodeState parent, string path, string name, BuiltInType dataType, int valueRank ) : BaseDataVariableState

Creates a new variable.

CreateVariable ( NodeState parent, string path, string name, Opc.Ua.NodeId dataType, int valueRank ) : BaseDataVariableState

Creates a new variable.

CreateVariableType ( NodeState parent, IDictionary externalReferences, string path, string name, BuiltInType dataType, int valueRank ) : BaseVariableTypeState

Creates a new variable type.

CreateVariables ( NodeState parent, string path, string name, BuiltInType dataType, int valueRank, UInt16 numVariables ) : BaseDataVariableState[]
CreateVariables ( NodeState parent, string path, string name, Opc.Ua.NodeId dataType, int valueRank, UInt16 numVariables ) : BaseDataVariableState[]
CreateView ( NodeState parent, IDictionary externalReferences, string path, string name ) : ViewState

Creates a new view.

DoSimulation ( object state ) : void
GetNewValue ( BaseVariableState variable ) : object
OnAddCall ( ISystemContext context, MethodState method, IList inputArguments, IList outputArguments ) : ServiceResult
OnDivideCall ( ISystemContext context, MethodState method, IList inputArguments, IList outputArguments ) : ServiceResult
OnHelloCall ( ISystemContext context, MethodState method, IList inputArguments, IList outputArguments ) : ServiceResult
OnMultiplyCall ( ISystemContext context, MethodState method, IList inputArguments, IList outputArguments ) : ServiceResult
OnSubstractCall ( ISystemContext context, MethodState method, IList inputArguments, IList outputArguments ) : ServiceResult
OnVoidCall ( ISystemContext context, MethodState method, IList inputArguments, IList outputArguments ) : ServiceResult
OnWriteAnalog ( ISystemContext context, NodeState node, NumericRange indexRange, Opc.Ua.QualifiedName dataEncoding, object &value, Opc.Ua.StatusCode &statusCode, System.DateTime &timestamp ) : ServiceResult
OnWriteDataItem ( ISystemContext context, NodeState node, NumericRange indexRange, Opc.Ua.QualifiedName dataEncoding, object &value, Opc.Ua.StatusCode &statusCode, System.DateTime &timestamp ) : ServiceResult
OnWriteDiscrete ( ISystemContext context, NodeState node, NumericRange indexRange, Opc.Ua.QualifiedName dataEncoding, object &value, Opc.Ua.StatusCode &statusCode, System.DateTime &timestamp ) : ServiceResult
OnWriteEnabled ( ISystemContext context, NodeState node, object &value ) : ServiceResult
OnWriteInterval ( ISystemContext context, NodeState node, object &value ) : ServiceResult

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

DeleteAddressSpace() public méthode

Frees any resources allocated for the address space.
public DeleteAddressSpace ( ) : void
Résultat void

Dispose() protected méthode

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

EmptyNodeManager() public méthode

Initializes the node manager.
public EmptyNodeManager ( IServerInternal server, ApplicationConfiguration configuration ) : System
server IServerInternal
configuration ApplicationConfiguration
Résultat System

GetManagerHandle() protected méthode

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
Résultat Opc.Ua.Server.NodeHandle

New() public méthode

Creates the NodeId for the specified node.
public New ( ISystemContext context, NodeState node ) : Opc.Ua.NodeId
context ISystemContext
node NodeState
Résultat Opc.Ua.NodeId

ValidateNode() protected méthode

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
Résultat NodeState