C# Класс Opc.Ua.Server.NodeSource

Наследование: ILocalNode, IDisposable, IFormattable, ICloneable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

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

Метод Описание
Clone ( NodeSource parent ) : NodeSource

Makes a copy of the node without any node ids specified.

Create ( NodeId parentId, NodeId referenceTypeId, NodeId nodeId, QualifiedName browseName, uint numericId, object configuration ) : void

Updates the object based from a configuration.

CreateCopy ( NodeId nodeId ) : ILocalNode
Delete ( ) : void

Deletes the Node from the address space.

This method is called deletes all nodes created when the type was instantiated. The subclass must implement DeleteChildren() to remove nodes that are not part of the type model. Before any processing starts this method calls OnBeforeDelete(). After successfully deleting all nodes this method calls OnAfterDelete().

Dispose ( ) : void

Frees any unmanaged resources.

GetDisplayPath ( int count ) : LocalizedText

Builds a path of display names starting with the top most parent.

Initialize ( NodeSource source ) : void

Initializes a node from another node.

MemberwiseClone ( ) : object

Makes a copy of the node without any node ids specified.

OverrideValueStatus ( StatusCode statusCode ) : void

Recursively overrides the status for value of any child variables.

Read ( IOperationContext context, uint attributeId, DataValue value ) : ServiceResult
Subscribe ( IMonitoredItem monitoredItem ) : void

Adds a subscription to the source.

SupportsAttribute ( uint attributeId ) : bool
ToString ( ) : string

Returns a string representation of the HierarchyReference.

ToString ( string format, IFormatProvider formatProvider ) : string

Returns a string representation of the HierarchyReference.

Unsubscribe ( IMonitoredItem monitoredItem ) : void

Removes a subscription from the source.

Write ( uint attributeId, DataValue value ) : ServiceResult

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

Метод Описание
AddChild ( NodeSource child ) : void

Adds a child to the node.

ApplyConfiguration ( object configuration ) : void

Applies the configuration to the node.

CheckNodeManagerState ( ) : void

Verified that the current thread has locked the NodeManager.

CreateChildren ( object configuration ) : void

Creates the children for the node.

CreateNode ( NodeId parentId, NodeId referenceTypeId ) : void

Creates the node in the server's address space.

DeleteChild ( BaseInstanceSource child ) : BaseInstanceSource

Creates the children for the node.

DeleteChildren ( ) : void

Deletes the children for the node.

Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Find ( IList relativePath, int index ) : NodeSource

Finds the node identified by the relative path.

FindMonitoredItem ( uint id ) : IMonitoredItem

Returns the specified monitored item. Null if it does not exist.

GetNamespaceIndex ( string namespaceUri ) : ushort

Returns the index for the namespace uri (adds it to the table if it does not already exist).

Initialize ( NodeId nodeId, QualifiedName browseName, uint numericId ) : void

Initializes a node before it is created.

InitializeChildren ( ) : void

Initializes the child nodes.

NodeSource ( IServerInternal server, NodeSource parent ) : System

Associates the object with a server (mandatory) and its model parent (optional).

OnAfterCreate ( object configuration ) : void

Called when the node has been created in address space.

OnAfterDelete ( ) : void

Called after the object is deletes its nodes.

OnAfterInitialize ( ) : void

Called after the node has been initialized from a source.

OnBeforeCreate ( object configuration ) : object

Called before the node is created in the address space,

OnBeforeDelete ( ) : void

Called before the object deletes its nodes from the address space.

OnBeforeInitialize ( ) : void

Called before the node is initialized from a source

ReadAttribute ( IOperationContext context, uint attributeId, DataValue value ) : ServiceResult

Reads an attribute for the node.

RemoveChild ( NodeSource child ) : void

Adds a child from the node.

UpdateAttributes ( ILocalNode source ) : void

Updates the attributes of the node.

UpdateReferences ( ILocalNode source ) : void

Copies the references from the source.

WriteAttribute ( uint attributeId, DataValue value ) : ServiceResult

Updates an attribute for the node.

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

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

Adds a child to the node.
protected AddChild ( NodeSource child ) : void
child NodeSource
Результат void

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

Applies the configuration to the node.
protected ApplyConfiguration ( object configuration ) : void
configuration object
Результат void

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

Verified that the current thread has locked the NodeManager.
protected CheckNodeManagerState ( ) : void
Результат void

Clone() публичный абстрактный Метод

Makes a copy of the node without any node ids specified.
public abstract Clone ( NodeSource parent ) : NodeSource
parent NodeSource
Результат NodeSource

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

Updates the object based from a configuration.
public Create ( NodeId parentId, NodeId referenceTypeId, NodeId nodeId, QualifiedName browseName, uint numericId, object configuration ) : void
parentId NodeId
referenceTypeId NodeId
nodeId NodeId
browseName QualifiedName
numericId uint
configuration object
Результат void

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

Creates the children for the node.
protected CreateChildren ( object configuration ) : void
configuration object
Результат void

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

public CreateCopy ( NodeId nodeId ) : ILocalNode
nodeId NodeId
Результат ILocalNode

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

Creates the node in the server's address space.
protected CreateNode ( NodeId parentId, NodeId referenceTypeId ) : void
parentId NodeId
referenceTypeId NodeId
Результат void

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

Deletes the Node from the address space.
This method is called deletes all nodes created when the type was instantiated. The subclass must implement DeleteChildren() to remove nodes that are not part of the type model. Before any processing starts this method calls OnBeforeDelete(). After successfully deleting all nodes this method calls OnAfterDelete().
public Delete ( ) : void
Результат void

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

Creates the children for the node.
protected DeleteChild ( BaseInstanceSource child ) : BaseInstanceSource
child BaseInstanceSource
Результат BaseInstanceSource

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

Deletes the children for the node.
protected DeleteChildren ( ) : void
Результат void

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

Frees any unmanaged resources.
public Dispose ( ) : void
Результат void

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

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

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

Finds the node identified by the relative path.
protected Find ( IList relativePath, int index ) : NodeSource
relativePath IList
index int
Результат NodeSource

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

Returns the specified monitored item. Null if it does not exist.
protected FindMonitoredItem ( uint id ) : IMonitoredItem
id uint
Результат IMonitoredItem

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

Builds a path of display names starting with the top most parent.
public GetDisplayPath ( int count ) : LocalizedText
count int
Результат LocalizedText

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

Returns the index for the namespace uri (adds it to the table if it does not already exist).
protected GetNamespaceIndex ( string namespaceUri ) : ushort
namespaceUri string
Результат ushort

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

Initializes a node before it is created.
protected Initialize ( NodeId nodeId, QualifiedName browseName, uint numericId ) : void
nodeId NodeId
browseName QualifiedName
numericId uint
Результат void

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

Initializes a node from another node.
public Initialize ( NodeSource source ) : void
source NodeSource
Результат void

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

Initializes the child nodes.
protected InitializeChildren ( ) : void
Результат void

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

Makes a copy of the node without any node ids specified.
public MemberwiseClone ( ) : object
Результат object

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

Associates the object with a server (mandatory) and its model parent (optional).
protected NodeSource ( IServerInternal server, NodeSource parent ) : System
server IServerInternal
parent NodeSource
Результат System

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

Called when the node has been created in address space.
protected OnAfterCreate ( object configuration ) : void
configuration object
Результат void

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

Called after the object is deletes its nodes.
protected OnAfterDelete ( ) : void
Результат void

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

Called after the node has been initialized from a source.
protected OnAfterInitialize ( ) : void
Результат void

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

Called before the node is created in the address space,
protected OnBeforeCreate ( object configuration ) : object
configuration object
Результат object

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

Called before the object deletes its nodes from the address space.
protected OnBeforeDelete ( ) : void
Результат void

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

Called before the node is initialized from a source
protected OnBeforeInitialize ( ) : void
Результат void

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

Recursively overrides the status for value of any child variables.
public OverrideValueStatus ( StatusCode statusCode ) : void
statusCode StatusCode
Результат void

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

public Read ( IOperationContext context, uint attributeId, DataValue value ) : ServiceResult
context IOperationContext
attributeId uint
value DataValue
Результат ServiceResult

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

Reads an attribute for the node.
protected ReadAttribute ( IOperationContext context, uint attributeId, DataValue value ) : ServiceResult
context IOperationContext
attributeId uint
value DataValue
Результат ServiceResult

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

Adds a child from the node.
protected RemoveChild ( NodeSource child ) : void
child NodeSource
Результат void

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

Adds a subscription to the source.
public Subscribe ( IMonitoredItem monitoredItem ) : void
monitoredItem IMonitoredItem
Результат void

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

public SupportsAttribute ( uint attributeId ) : bool
attributeId uint
Результат bool

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

Returns a string representation of the HierarchyReference.
public ToString ( ) : string
Результат string

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

Returns a string representation of the HierarchyReference.
public ToString ( string format, IFormatProvider formatProvider ) : string
format string
formatProvider IFormatProvider
Результат string

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

Removes a subscription from the source.
public Unsubscribe ( IMonitoredItem monitoredItem ) : void
monitoredItem IMonitoredItem
Результат void

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

Updates the attributes of the node.
protected UpdateAttributes ( ILocalNode source ) : void
source ILocalNode
Результат void

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

Copies the references from the source.
protected UpdateReferences ( ILocalNode source ) : void
source ILocalNode
Результат void

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

public Write ( uint attributeId, DataValue value ) : ServiceResult
attributeId uint
value DataValue
Результат ServiceResult

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

Updates an attribute for the node.
protected WriteAttribute ( uint attributeId, DataValue value ) : ServiceResult
attributeId uint
value DataValue
Результат ServiceResult