C# Класс Opc.Ua.Client.NodeCache

A client side cache of the server's type model.
Наследование: INodeTable, ITypeTable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

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

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

Builds the relative path from a type to a node.
public BuildBrowsePath ( ILocalNode node, IList browsePath ) : NodeId
node ILocalNode
browsePath IList
Результат NodeId

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

Removes all nodes from the cache.
public Clear ( ) : void
Результат void

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

public Exists ( ExpandedNodeId nodeId ) : bool
nodeId ExpandedNodeId
Результат bool

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

Fetches a node from the server and updates the cache.
public FetchNode ( ExpandedNodeId nodeId ) : Node
nodeId ExpandedNodeId
Результат Node

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

Adds the supertypes of the node to the cache.
public FetchSuperTypes ( ExpandedNodeId nodeId ) : void
nodeId ExpandedNodeId
Результат void

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

public Find ( ExpandedNodeId sourceId, NodeId referenceTypeId, bool isInverse, bool includeSubtypes ) : IList
sourceId ExpandedNodeId
referenceTypeId NodeId
isInverse bool
includeSubtypes bool
Результат IList

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

public Find ( ExpandedNodeId nodeId ) : INode
nodeId ExpandedNodeId
Результат INode

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

public Find ( ExpandedNodeId sourceId, NodeId referenceTypeId, bool isInverse, bool includeSubtypes, QualifiedName browseName ) : INode
sourceId ExpandedNodeId
referenceTypeId NodeId
isInverse bool
includeSubtypes bool
browseName QualifiedName
Результат INode

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

Returns the data type for the specified encoding.
public FindDataTypeId ( ExpandedNodeId encodingId ) : NodeId
encodingId ExpandedNodeId The encoding id.
Результат NodeId

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

Returns the data type for the specified encoding.
public FindDataTypeId ( NodeId encodingId ) : NodeId
encodingId NodeId The encoding id.
Результат NodeId

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

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.
Результат NodeId

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

Returns the qualified name for the reference type id.
public FindReferenceTypeName ( NodeId referenceTypeId ) : QualifiedName
referenceTypeId NodeId The reference type
Результат QualifiedName

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

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
Результат IList

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

Returns the immediate subtypes for the type.
public FindSubTypes ( ExpandedNodeId typeId ) : IList
typeId ExpandedNodeId The extended type identifier.
Результат IList

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

Returns the immediate supertype for the type.
public FindSuperType ( ExpandedNodeId typeId ) : NodeId
typeId ExpandedNodeId The extended type identifier.
Результат NodeId

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

Returns the immediate supertype for the type.
public FindSuperType ( NodeId typeId ) : NodeId
typeId NodeId The type identifier.
Результат NodeId

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

Returns a display name for a node.
public GetDisplayText ( ExpandedNodeId nodeId ) : string
nodeId ExpandedNodeId
Результат string

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

Returns a display name for a node.
public GetDisplayText ( INode node ) : string
node INode
Результат string

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

Returns a display name for the target of a reference.
public GetDisplayText ( ReferenceDescription reference ) : string
reference ReferenceDescription
Результат string

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

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.
Результат bool

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

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.
Результат bool

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

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.
Результат bool

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

Determines whether a node id is a known type id.
public IsKnown ( ExpandedNodeId typeId ) : bool
typeId ExpandedNodeId The type extended identifier.
Результат bool

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

Determines whether a node id is a known type id.
public IsKnown ( NodeId typeId ) : bool
typeId NodeId The type identifier.
Результат bool

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

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.
Результат bool

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

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.
Результат bool

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

Loads the UA defined types into the cache.
public LoadUaDefinedTypes ( ISystemContext context ) : void
context ISystemContext The context.
Результат void

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

Initializes the object with default values.
public NodeCache ( Session session ) : System
session Session
Результат System