C# Class Opc.Ua.Client.NodeCache

A client side cache of the server's type model.
Inheritance: INodeTable, ITypeTable
ファイルを表示 Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
BuildBrowsePath ( ILocalNode node, IList browsePath ) : NodeId

Builds the relative path from a type to a node.

Clear ( ) : void

Removes all nodes from the cache.

Exists ( ExpandedNodeId nodeId ) : bool
FetchNode ( ExpandedNodeId nodeId ) : Node

Fetches a node from the server and updates the cache.

FetchSuperTypes ( ExpandedNodeId nodeId ) : void

Adds the supertypes of the node to the cache.

Find ( ExpandedNodeId sourceId, NodeId referenceTypeId, bool isInverse, bool includeSubtypes ) : IList
Find ( ExpandedNodeId nodeId ) : INode
Find ( ExpandedNodeId sourceId, NodeId referenceTypeId, bool isInverse, bool includeSubtypes, QualifiedName browseName ) : INode
FindDataTypeId ( ExpandedNodeId encodingId ) : NodeId

Returns the data type for the specified encoding.

FindDataTypeId ( NodeId encodingId ) : NodeId

Returns the data type for the specified encoding.

FindReferenceType ( QualifiedName browseName ) : NodeId

Returns the node identifier for the reference type with the specified browse name.

FindReferenceTypeName ( NodeId referenceTypeId ) : QualifiedName

Returns the qualified name for the reference type id.

FindReferences ( ExpandedNodeId nodeId, NodeId referenceTypeId, bool isInverse, bool includeSubtypes ) : IList

Returns the references of the specified node that meet the criteria specified.

FindSubTypes ( ExpandedNodeId typeId ) : IList

Returns the immediate subtypes for the type.

FindSuperType ( ExpandedNodeId typeId ) : NodeId

Returns the immediate supertype for the type.

FindSuperType ( NodeId typeId ) : NodeId

Returns the immediate supertype for the type.

GetDisplayText ( ExpandedNodeId nodeId ) : string

Returns a display name for a node.

GetDisplayText ( INode node ) : string

Returns a display name for a node.

GetDisplayText ( ReferenceDescription reference ) : string

Returns a display name for the target of a reference.

IsEncodingFor ( NodeId expectedTypeId, ExtensionObject value ) : bool

Determines if the value contained in an extension object value matches the expected data type.

IsEncodingFor ( NodeId expectedTypeId, object value ) : bool

Determines if the value is an encoding of the value

IsEncodingOf ( ExpandedNodeId encodingId, ExpandedNodeId datatypeId ) : bool

Checks if the identifier encodingId represents a that provides encodings for the datatypeId .

IsKnown ( ExpandedNodeId typeId ) : bool

Determines whether a node id is a known type id.

IsKnown ( NodeId typeId ) : bool

Determines whether a node id is a known type id.

IsTypeOf ( ExpandedNodeId subTypeId, ExpandedNodeId superTypeId ) : bool

Determines whether a type is a subtype of another type.

IsTypeOf ( NodeId subTypeId, NodeId superTypeId ) : bool

Determines whether a type is a subtype of another type.

LoadUaDefinedTypes ( ISystemContext context ) : void

Loads the UA defined types into the cache.

NodeCache ( Session session ) : System

Initializes the object with default values.

Method Details

BuildBrowsePath() public method

Builds the relative path from a type to a node.
public BuildBrowsePath ( ILocalNode node, IList browsePath ) : NodeId
node ILocalNode
browsePath IList
return NodeId

Clear() public method

Removes all nodes from the cache.
public Clear ( ) : void
return void

Exists() public method

public Exists ( ExpandedNodeId nodeId ) : bool
nodeId ExpandedNodeId
return bool

FetchNode() public method

Fetches a node from the server and updates the cache.
public FetchNode ( ExpandedNodeId nodeId ) : Node
nodeId ExpandedNodeId
return Node

FetchSuperTypes() public method

Adds the supertypes of the node to the cache.
public FetchSuperTypes ( ExpandedNodeId nodeId ) : void
nodeId ExpandedNodeId
return void

Find() public method

public Find ( ExpandedNodeId sourceId, NodeId referenceTypeId, bool isInverse, bool includeSubtypes ) : IList
sourceId ExpandedNodeId
referenceTypeId NodeId
isInverse bool
includeSubtypes bool
return IList

Find() public method

public Find ( ExpandedNodeId nodeId ) : INode
nodeId ExpandedNodeId
return INode

Find() public method

public Find ( ExpandedNodeId sourceId, NodeId referenceTypeId, bool isInverse, bool includeSubtypes, QualifiedName browseName ) : INode
sourceId ExpandedNodeId
referenceTypeId NodeId
isInverse bool
includeSubtypes bool
browseName QualifiedName
return INode

FindDataTypeId() public method

Returns the data type for the specified encoding.
public FindDataTypeId ( ExpandedNodeId encodingId ) : NodeId
encodingId ExpandedNodeId The encoding id.
return NodeId

FindDataTypeId() public method

Returns the data type for the specified encoding.
public FindDataTypeId ( NodeId encodingId ) : NodeId
encodingId NodeId The encoding id.
return NodeId

FindReferenceType() public method

Returns the node identifier for the reference type with the specified browse name.
public FindReferenceType ( QualifiedName browseName ) : NodeId
browseName QualifiedName Browse name of the reference.
return NodeId

FindReferenceTypeName() public method

Returns the qualified name for the reference type id.
public FindReferenceTypeName ( NodeId referenceTypeId ) : QualifiedName
referenceTypeId NodeId The reference type
return QualifiedName

FindReferences() public method

Returns the references of the specified node that meet the criteria specified.
public FindReferences ( ExpandedNodeId nodeId, NodeId referenceTypeId, bool isInverse, bool includeSubtypes ) : IList
nodeId ExpandedNodeId
referenceTypeId NodeId
isInverse bool
includeSubtypes bool
return IList

FindSubTypes() public method

Returns the immediate subtypes for the type.
public FindSubTypes ( ExpandedNodeId typeId ) : IList
typeId ExpandedNodeId The extended type identifier.
return IList

FindSuperType() public method

Returns the immediate supertype for the type.
public FindSuperType ( ExpandedNodeId typeId ) : NodeId
typeId ExpandedNodeId The extended type identifier.
return NodeId

FindSuperType() public method

Returns the immediate supertype for the type.
public FindSuperType ( NodeId typeId ) : NodeId
typeId NodeId The type identifier.
return NodeId

GetDisplayText() public method

Returns a display name for a node.
public GetDisplayText ( ExpandedNodeId nodeId ) : string
nodeId ExpandedNodeId
return string

GetDisplayText() public method

Returns a display name for a node.
public GetDisplayText ( INode node ) : string
node INode
return string

GetDisplayText() public method

Returns a display name for the target of a reference.
public GetDisplayText ( ReferenceDescription reference ) : string
reference ReferenceDescription
return string

IsEncodingFor() public method

Determines if the value contained in an extension object value matches the expected data type.
public IsEncodingFor ( NodeId expectedTypeId, ExtensionObject value ) : bool
expectedTypeId NodeId The identifier of the expected type .
value ExtensionObject The value.
return bool

IsEncodingFor() public method

Determines if the value is an encoding of the value
public IsEncodingFor ( NodeId expectedTypeId, object value ) : bool
expectedTypeId NodeId The expected type id.
value object The value.
return bool

IsEncodingOf() public method

Checks if the identifier encodingId represents a that provides encodings for the datatypeId .
public IsEncodingOf ( ExpandedNodeId encodingId, ExpandedNodeId datatypeId ) : bool
encodingId ExpandedNodeId The id the encoding node .
datatypeId ExpandedNodeId The id of the DataType node.
return bool

IsKnown() public method

Determines whether a node id is a known type id.
public IsKnown ( ExpandedNodeId typeId ) : bool
typeId ExpandedNodeId The type extended identifier.
return bool

IsKnown() public method

Determines whether a node id is a known type id.
public IsKnown ( NodeId typeId ) : bool
typeId NodeId The type identifier.
return bool

IsTypeOf() public method

Determines whether a type is a subtype of another type.
public IsTypeOf ( ExpandedNodeId subTypeId, ExpandedNodeId superTypeId ) : bool
subTypeId ExpandedNodeId The subtype identifier.
superTypeId ExpandedNodeId The supertype identifier.
return bool

IsTypeOf() public method

Determines whether a type is a subtype of another type.
public IsTypeOf ( NodeId subTypeId, NodeId superTypeId ) : bool
subTypeId NodeId The subtype identifier.
superTypeId NodeId The supertype identyfier.
return bool

LoadUaDefinedTypes() public method

Loads the UA defined types into the cache.
public LoadUaDefinedTypes ( ISystemContext context ) : void
context ISystemContext The context.
return void

NodeCache() public method

Initializes the object with default values.
public NodeCache ( Session session ) : System
session Session
return System