C# Class Opc.Ua.Node

A node in the server address space.
Inheritance: IFormattable, ILocalNode
ファイルを表示 Open project: OPCFoundation/UA-.NETStandardLibrary Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Copy ( ILocalNode source ) : Node

Returns a copy of the node

CreateCopy ( Opc.Ua.NodeId nodeId ) : ILocalNode

Creates a copy of the node.

Find ( Opc.Ua.NodeId referenceTypeId, bool isInverse ) : IList

Returns all targets of the specified reference type.

FindTarget ( Opc.Ua.NodeId referenceTypeId, bool isInverse, int index ) : Opc.Ua.ExpandedNodeId

Returns a target of the specified reference type.

GetSuperType ( ITypeTable typeTree ) : Opc.Ua.ExpandedNodeId

Returns the supertype for the Node if one exists.

Includes subtypes of HasSubtype if typeTree != null.

Node ( ILocalNode source ) : System

Creates a node from another node (copies attributes - not references).

Node ( ReferenceDescription reference ) : System

Creates a node from a reference desciption.

Read ( IOperationContext context, uint attributeId, Opc.Ua.DataValue value ) : ServiceResult

Reads the value of a attribute.

ReferenceExists ( Opc.Ua.NodeId referenceTypeId, bool isInverse, Opc.Ua.ExpandedNodeId targetId ) : bool

Returns true if the reference exist.

SupportsAttribute ( uint attributeId ) : bool

Returns true if the node supports the attribute.

ToString ( ) : string

Returns the string representation of the object.

ToString ( string format, IFormatProvider provider ) : string

Returns the string representation of the object.

Write ( uint attributeId, Opc.Ua.DataValue value ) : ServiceResult

Writes the value of an attribute.

Protected Methods

Method Description
Read ( uint attributeId ) : object

Reads the value of an attribute.

Write ( uint attributeId, object value ) : ServiceResult

Writes the value of an attribute.

Method Details

Copy() public static method

Returns a copy of the node
public static Copy ( ILocalNode source ) : Node
source ILocalNode The source.
return Node

CreateCopy() public method

Creates a copy of the node.
public CreateCopy ( Opc.Ua.NodeId nodeId ) : ILocalNode
nodeId Opc.Ua.NodeId The node identifier.
return ILocalNode

Find() public method

Returns all targets of the specified reference type.
public Find ( Opc.Ua.NodeId referenceTypeId, bool isInverse ) : IList
referenceTypeId Opc.Ua.NodeId The reference type id.
isInverse bool if set to true [is inverse].
return IList

FindTarget() public method

Returns a target of the specified reference type.
public FindTarget ( Opc.Ua.NodeId referenceTypeId, bool isInverse, int index ) : Opc.Ua.ExpandedNodeId
referenceTypeId Opc.Ua.NodeId The reference type id.
isInverse bool if set to true [is inverse].
index int The index.
return Opc.Ua.ExpandedNodeId

GetSuperType() public method

Returns the supertype for the Node if one exists.
Includes subtypes of HasSubtype if typeTree != null.
public GetSuperType ( ITypeTable typeTree ) : Opc.Ua.ExpandedNodeId
typeTree ITypeTable The type tree.
return Opc.Ua.ExpandedNodeId

Node() public method

Creates a node from another node (copies attributes - not references).
public Node ( ILocalNode source ) : System
source ILocalNode The source.
return System

Node() public method

Creates a node from a reference desciption.
public Node ( ReferenceDescription reference ) : System
reference ReferenceDescription The reference.
return System

Read() public method

Reads the value of a attribute.
public Read ( IOperationContext context, uint attributeId, Opc.Ua.DataValue value ) : ServiceResult
context IOperationContext The context.
attributeId uint The attribute id.
value Opc.Ua.DataValue The value.
return ServiceResult

Read() protected method

Reads the value of an attribute.
protected Read ( uint attributeId ) : object
attributeId uint The attribute id.
return object

ReferenceExists() public method

Returns true if the reference exist.
public ReferenceExists ( Opc.Ua.NodeId referenceTypeId, bool isInverse, Opc.Ua.ExpandedNodeId targetId ) : bool
referenceTypeId Opc.Ua.NodeId The reference type id.
isInverse bool if set to true [is inverse].
targetId Opc.Ua.ExpandedNodeId The target id.
return bool

SupportsAttribute() public method

Returns true if the node supports the attribute.
public SupportsAttribute ( uint attributeId ) : bool
attributeId uint The attribute id.
return bool

ToString() public method

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

ToString() public method

Returns the string representation of the object.
public ToString ( string format, IFormatProvider provider ) : string
format string The format.
provider IFormatProvider The provider.
return string

Write() public method

Writes the value of an attribute.
public Write ( uint attributeId, Opc.Ua.DataValue value ) : ServiceResult
attributeId uint The attribute id.
value Opc.Ua.DataValue The value.
return ServiceResult

Write() protected method

Writes the value of an attribute.
protected Write ( uint attributeId, object value ) : ServiceResult
attributeId uint The attribute id.
value object The value.
return ServiceResult