C# Class Opc.Ua.Client.NodeCache

A client side cache of the server's type model.
Inheritance: INodeTable, ITypeTable
Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Méthodes publiques

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

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

Clear() public méthode

Removes all nodes from the cache.
public Clear ( ) : void
Résultat void

Exists() public méthode

public Exists ( ExpandedNodeId nodeId ) : bool
nodeId ExpandedNodeId
Résultat bool

FetchNode() public méthode

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

FetchSuperTypes() public méthode

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

Find() public méthode

public Find ( ExpandedNodeId sourceId, NodeId referenceTypeId, bool isInverse, bool includeSubtypes ) : IList
sourceId ExpandedNodeId
referenceTypeId NodeId
isInverse bool
includeSubtypes bool
Résultat IList

Find() public méthode

public Find ( ExpandedNodeId nodeId ) : INode
nodeId ExpandedNodeId
Résultat INode

Find() public méthode

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

FindDataTypeId() public méthode

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

FindDataTypeId() public méthode

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

FindReferenceType() public méthode

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.
Résultat NodeId

FindReferenceTypeName() public méthode

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

FindReferences() public méthode

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

FindSubTypes() public méthode

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

FindSuperType() public méthode

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

FindSuperType() public méthode

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

GetDisplayText() public méthode

Returns a display name for a node.
public GetDisplayText ( ExpandedNodeId nodeId ) : string
nodeId ExpandedNodeId
Résultat string

GetDisplayText() public méthode

Returns a display name for a node.
public GetDisplayText ( INode node ) : string
node INode
Résultat string

GetDisplayText() public méthode

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

IsEncodingFor() public méthode

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.
Résultat bool

IsEncodingFor() public méthode

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.
Résultat bool

IsEncodingOf() public méthode

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.
Résultat bool

IsKnown() public méthode

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

IsKnown() public méthode

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

IsTypeOf() public méthode

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.
Résultat bool

IsTypeOf() public méthode

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.
Résultat bool

LoadUaDefinedTypes() public méthode

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

NodeCache() public méthode

Initializes the object with default values.
public NodeCache ( Session session ) : System
session Session
Résultat System