C# Class Opc.Ua.Server.NodeSource

Inheritance: ILocalNode, IDisposable, IFormattable, ICloneable
Afficher le fichier Open project: OPCFoundation/UA-.NETStandardLibrary Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

Adds a child to the node.
protected AddChild ( NodeSource child ) : void
child NodeSource
Résultat void

ApplyConfiguration() protected méthode

Applies the configuration to the node.
protected ApplyConfiguration ( object configuration ) : void
configuration object
Résultat void

CheckNodeManagerState() protected méthode

Verified that the current thread has locked the NodeManager.
protected CheckNodeManagerState ( ) : void
Résultat void

Clone() public abstract méthode

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

Create() public méthode

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

CreateChildren() protected méthode

Creates the children for the node.
protected CreateChildren ( object configuration ) : void
configuration object
Résultat void

CreateCopy() public méthode

public CreateCopy ( NodeId nodeId ) : ILocalNode
nodeId NodeId
Résultat ILocalNode

CreateNode() protected méthode

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

Delete() public méthode

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

DeleteChild() protected méthode

Creates the children for the node.
protected DeleteChild ( BaseInstanceSource child ) : BaseInstanceSource
child BaseInstanceSource
Résultat BaseInstanceSource

DeleteChildren() protected méthode

Deletes the children for the node.
protected DeleteChildren ( ) : void
Résultat void

Dispose() public méthode

Frees any unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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

Find() protected méthode

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

FindMonitoredItem() protected méthode

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

GetDisplayPath() public méthode

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

GetNamespaceIndex() protected méthode

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

Initialize() protected méthode

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

Initialize() public méthode

Initializes a node from another node.
public Initialize ( NodeSource source ) : void
source NodeSource
Résultat void

InitializeChildren() protected méthode

Initializes the child nodes.
protected InitializeChildren ( ) : void
Résultat void

MemberwiseClone() public méthode

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

NodeSource() protected méthode

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

OnAfterCreate() protected méthode

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

OnAfterDelete() protected méthode

Called after the object is deletes its nodes.
protected OnAfterDelete ( ) : void
Résultat void

OnAfterInitialize() protected méthode

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

OnBeforeCreate() protected méthode

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

OnBeforeDelete() protected méthode

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

OnBeforeInitialize() protected méthode

Called before the node is initialized from a source
protected OnBeforeInitialize ( ) : void
Résultat void

OverrideValueStatus() public méthode

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

Read() public méthode

public Read ( IOperationContext context, uint attributeId, DataValue value ) : ServiceResult
context IOperationContext
attributeId uint
value DataValue
Résultat ServiceResult

ReadAttribute() protected méthode

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

RemoveChild() protected méthode

Adds a child from the node.
protected RemoveChild ( NodeSource child ) : void
child NodeSource
Résultat void

Subscribe() public méthode

Adds a subscription to the source.
public Subscribe ( IMonitoredItem monitoredItem ) : void
monitoredItem IMonitoredItem
Résultat void

SupportsAttribute() public méthode

public SupportsAttribute ( uint attributeId ) : bool
attributeId uint
Résultat bool

ToString() public méthode

Returns a string representation of the HierarchyReference.
public ToString ( ) : string
Résultat string

ToString() public méthode

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

Unsubscribe() public méthode

Removes a subscription from the source.
public Unsubscribe ( IMonitoredItem monitoredItem ) : void
monitoredItem IMonitoredItem
Résultat void

UpdateAttributes() protected méthode

Updates the attributes of the node.
protected UpdateAttributes ( ILocalNode source ) : void
source ILocalNode
Résultat void

UpdateReferences() protected méthode

Copies the references from the source.
protected UpdateReferences ( ILocalNode source ) : void
source ILocalNode
Résultat void

Write() public méthode

public Write ( uint attributeId, DataValue value ) : ServiceResult
attributeId uint
value DataValue
Résultat ServiceResult

WriteAttribute() protected méthode

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