C# 클래스 Opc.Ua.Client.NodeCache

A client side cache of the server's type model.
상속: INodeTable, ITypeTable
파일 보기 프로젝트 열기: OPCFoundation/UA-.NET 1 사용 예제들

공개 메소드들

메소드 설명
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