C# Class Opc.Ua.Server.NodeSource

Inheritance: ILocalNode, IDisposable, IFormattable, ICloneable
ファイルを表示 Open project: OPCFoundation/UA-.NETStandardLibrary Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
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

Protected Methods

Method Description
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.

Method Details

AddChild() protected method

Adds a child to the node.
protected AddChild ( NodeSource child ) : void
child NodeSource
return void

ApplyConfiguration() protected method

Applies the configuration to the node.
protected ApplyConfiguration ( object configuration ) : void
configuration object
return void

CheckNodeManagerState() protected method

Verified that the current thread has locked the NodeManager.
protected CheckNodeManagerState ( ) : void
return void

Clone() public abstract method

Makes a copy of the node without any node ids specified.
public abstract Clone ( NodeSource parent ) : NodeSource
parent NodeSource
return NodeSource

Create() public method

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
return void

CreateChildren() protected method

Creates the children for the node.
protected CreateChildren ( object configuration ) : void
configuration object
return void

CreateCopy() public method

public CreateCopy ( NodeId nodeId ) : ILocalNode
nodeId NodeId
return ILocalNode

CreateNode() protected method

Creates the node in the server's address space.
protected CreateNode ( NodeId parentId, NodeId referenceTypeId ) : void
parentId NodeId
referenceTypeId NodeId
return void

Delete() public method

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
return void

DeleteChild() protected method

Creates the children for the node.
protected DeleteChild ( BaseInstanceSource child ) : BaseInstanceSource
child BaseInstanceSource
return BaseInstanceSource

DeleteChildren() protected method

Deletes the children for the node.
protected DeleteChildren ( ) : void
return void

Dispose() public method

Frees any unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
return void

Find() protected method

Finds the node identified by the relative path.
protected Find ( IList relativePath, int index ) : NodeSource
relativePath IList
index int
return NodeSource

FindMonitoredItem() protected method

Returns the specified monitored item. Null if it does not exist.
protected FindMonitoredItem ( uint id ) : IMonitoredItem
id uint
return IMonitoredItem

GetDisplayPath() public method

Builds a path of display names starting with the top most parent.
public GetDisplayPath ( int count ) : LocalizedText
count int
return LocalizedText

GetNamespaceIndex() protected method

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
return ushort

Initialize() protected method

Initializes a node before it is created.
protected Initialize ( NodeId nodeId, QualifiedName browseName, uint numericId ) : void
nodeId NodeId
browseName QualifiedName
numericId uint
return void

Initialize() public method

Initializes a node from another node.
public Initialize ( NodeSource source ) : void
source NodeSource
return void

InitializeChildren() protected method

Initializes the child nodes.
protected InitializeChildren ( ) : void
return void

MemberwiseClone() public method

Makes a copy of the node without any node ids specified.
public MemberwiseClone ( ) : object
return object

NodeSource() protected method

Associates the object with a server (mandatory) and its model parent (optional).
protected NodeSource ( IServerInternal server, NodeSource parent ) : System
server IServerInternal
parent NodeSource
return System

OnAfterCreate() protected method

Called when the node has been created in address space.
protected OnAfterCreate ( object configuration ) : void
configuration object
return void

OnAfterDelete() protected method

Called after the object is deletes its nodes.
protected OnAfterDelete ( ) : void
return void

OnAfterInitialize() protected method

Called after the node has been initialized from a source.
protected OnAfterInitialize ( ) : void
return void

OnBeforeCreate() protected method

Called before the node is created in the address space,
protected OnBeforeCreate ( object configuration ) : object
configuration object
return object

OnBeforeDelete() protected method

Called before the object deletes its nodes from the address space.
protected OnBeforeDelete ( ) : void
return void

OnBeforeInitialize() protected method

Called before the node is initialized from a source
protected OnBeforeInitialize ( ) : void
return void

OverrideValueStatus() public method

Recursively overrides the status for value of any child variables.
public OverrideValueStatus ( StatusCode statusCode ) : void
statusCode StatusCode
return void

Read() public method

public Read ( IOperationContext context, uint attributeId, DataValue value ) : ServiceResult
context IOperationContext
attributeId uint
value DataValue
return ServiceResult

ReadAttribute() protected method

Reads an attribute for the node.
protected ReadAttribute ( IOperationContext context, uint attributeId, DataValue value ) : ServiceResult
context IOperationContext
attributeId uint
value DataValue
return ServiceResult

RemoveChild() protected method

Adds a child from the node.
protected RemoveChild ( NodeSource child ) : void
child NodeSource
return void

Subscribe() public method

Adds a subscription to the source.
public Subscribe ( IMonitoredItem monitoredItem ) : void
monitoredItem IMonitoredItem
return void

SupportsAttribute() public method

public SupportsAttribute ( uint attributeId ) : bool
attributeId uint
return bool

ToString() public method

Returns a string representation of the HierarchyReference.
public ToString ( ) : string
return string

ToString() public method

Returns a string representation of the HierarchyReference.
public ToString ( string format, IFormatProvider formatProvider ) : string
format string
formatProvider IFormatProvider
return string

Unsubscribe() public method

Removes a subscription from the source.
public Unsubscribe ( IMonitoredItem monitoredItem ) : void
monitoredItem IMonitoredItem
return void

UpdateAttributes() protected method

Updates the attributes of the node.
protected UpdateAttributes ( ILocalNode source ) : void
source ILocalNode
return void

UpdateReferences() protected method

Copies the references from the source.
protected UpdateReferences ( ILocalNode source ) : void
source ILocalNode
return void

Write() public method

public Write ( uint attributeId, DataValue value ) : ServiceResult
attributeId uint
value DataValue
return ServiceResult

WriteAttribute() protected method

Updates an attribute for the node.
protected WriteAttribute ( uint attributeId, DataValue value ) : ServiceResult
attributeId uint
value DataValue
return ServiceResult