.NET Based OPC UA Client/Server SDK
3.2.1.522
|
Maintains a local cache of nodes and their attribute values. More...
Inherits UnifiedAutomation.UaBase.ITypeTable.
Public Member Functions | |
CacheManager (Session session) | |
Initializes a new instance of the CacheManager class. More... | |
string | GetDisplayText (ExpandedNodeId nodeId) |
Gets the display text. More... | |
string | GetDisplayText (NodeId nodeId) |
Gets the display text. More... | |
NodeId | GetDisplayText (NodeId rootId, string browsePath) |
Gets the node id which is the target of the browse path. More... | |
NodeId | GetNodeId (NodeId rootId, params QualifiedName[] browsePath) |
Gets the node id which is the target of the browse path (follows hierarchical references). More... | |
string | GetEnumerationText (NodeId nodeId, DataValue value) |
Gets the display text for the enumerated value. More... | |
string | GetEnumerationText (NodeId nodeId, Variant value) |
Gets the display text for the enumerated value. More... | |
string | GetEnumerationText (NodeId nodeId, int enumValue, string defaultText) |
Gets the display text for the enumerated value. More... | |
List< NodeId > | GetAvailableDataEncodings (NodeId nodeId) |
Gets the available data encodings. More... | |
T | GetAttribute< T > (NodeId nodeId, uint attributeId, T defaultValue) |
Gets the attribute. More... | |
void | Clear () |
Clears the cache. More... | |
void | Clear (NodeId nodeId) |
Clears the cached information for the specified node. More... | |
bool | IsKnown (ExpandedNodeId typeId) |
Determines whether a node id is a known type id. More... | |
bool | IsKnown (NodeId typeId) |
Determines whether a node id is a known type id. More... | |
NodeId | FindSuperType (ExpandedNodeId typeId) |
Returns the immediate supertype for the type. More... | |
NodeId | FindSuperType (NodeId typeId) |
Returns the immediate supertype for the type. More... | |
bool | IsTypeOf (ExpandedNodeId subTypeId, ExpandedNodeId superTypeId) |
Determines whether a type is a subtype of another type. More... | |
bool | IsTypeOf (NodeId subTypeId, NodeId superTypeId) |
Determines whether a type is a subtype of another type. More... | |
QualifiedName | FindReferenceTypeName (NodeId referenceTypeId) |
Returns the node identifier for the reference type with the specified browse name. More... | |
NodeId | FindReferenceType (QualifiedName referenceTypeName) |
Returns the qualified name for the reference type id. More... | |
NodeId | FindDataTypeId (ExpandedNodeId encodingId) |
Returns the data type for the specified encoding. More... | |
NodeId | FindDataTypeId (NodeId encodingId) |
Returns the data type for the specified encoding. More... | |
Properties | |
RequestSettings | DefaultRequestSettings [get, set] |
Gets or sets the default request settings. More... | |
Maintains a local cache of nodes and their attribute values.
UnifiedAutomation.UaClient.CacheManager.CacheManager | ( | Session | session | ) |
Initializes a new instance of the CacheManager class.
session | The session. |
void UnifiedAutomation.UaClient.CacheManager.Clear | ( | ) |
Clears the cache.
void UnifiedAutomation.UaClient.CacheManager.Clear | ( | NodeId | nodeId | ) |
Clears the cached information for the specified node.
nodeId | The node id. |
NodeId UnifiedAutomation.UaClient.CacheManager.FindDataTypeId | ( | ExpandedNodeId | encodingId | ) |
Returns the data type for the specified encoding.
encodingId | The encoding id. |
Implements UnifiedAutomation.UaBase.ITypeTable.
Returns the data type for the specified encoding.
encodingId | The encoding id. |
Implements UnifiedAutomation.UaBase.ITypeTable.
NodeId UnifiedAutomation.UaClient.CacheManager.FindReferenceType | ( | QualifiedName | referenceTypeName | ) |
Returns the qualified name for the reference type id.
referenceTypeName | Name of the reference type. |
Implements UnifiedAutomation.UaBase.ITypeTable.
QualifiedName UnifiedAutomation.UaClient.CacheManager.FindReferenceTypeName | ( | NodeId | referenceTypeId | ) |
Returns the node identifier for the reference type with the specified browse name.
referenceTypeId | The reference type id. |
Implements UnifiedAutomation.UaBase.ITypeTable.
NodeId UnifiedAutomation.UaClient.CacheManager.FindSuperType | ( | ExpandedNodeId | typeId | ) |
Returns the immediate supertype for the type.
typeId | The extended type identifier. |
Implements UnifiedAutomation.UaBase.ITypeTable.
Returns the immediate supertype for the type.
typeId | The type identifier. |
Implements UnifiedAutomation.UaBase.ITypeTable.
T UnifiedAutomation.UaClient.CacheManager.GetAttribute< T > | ( | NodeId | nodeId, |
uint | attributeId, | ||
T | defaultValue | ||
) |
Gets the attribute.
T |
nodeId | The node id. |
attributeId | The attribute id. |
defaultValue | The default value. |
Gets the available data encodings.
nodeId | The variable or data type node id. |
string UnifiedAutomation.UaClient.CacheManager.GetDisplayText | ( | ExpandedNodeId | nodeId | ) |
Gets the display text.
nodeId | The node id. |
string UnifiedAutomation.UaClient.CacheManager.GetDisplayText | ( | NodeId | nodeId | ) |
Gets the display text.
nodeId | The node id. |
Gets the node id which is the target of the browse path.
rootId | The root id. |
browsePath | The browse path. |
string UnifiedAutomation.UaClient.CacheManager.GetEnumerationText | ( | NodeId | nodeId, |
DataValue | value | ||
) |
Gets the display text for the enumerated value.
nodeId | The variable or data type node id. |
value | The value. |
Gets the display text for the enumerated value.
nodeId | The variable or data type node id. |
value | The value. |
string UnifiedAutomation.UaClient.CacheManager.GetEnumerationText | ( | NodeId | nodeId, |
int | enumValue, | ||
string | defaultText | ||
) |
Gets the display text for the enumerated value.
nodeId | The variable or data type node id. |
enumValue | The enum value. |
defaultText | The default text. |
NodeId UnifiedAutomation.UaClient.CacheManager.GetNodeId | ( | NodeId | rootId, |
params QualifiedName[] | browsePath | ||
) |
Gets the node id which is the target of the browse path (follows hierarchical references).
rootId | The root id. |
browsePath | The browse path. |
bool UnifiedAutomation.UaClient.CacheManager.IsKnown | ( | ExpandedNodeId | typeId | ) |
Determines whether a node id is a known type id.
typeId | The type extended identifier. |
true
if the specified type id is known; otherwise, false
. Implements UnifiedAutomation.UaBase.ITypeTable.
bool UnifiedAutomation.UaClient.CacheManager.IsKnown | ( | NodeId | typeId | ) |
Determines whether a node id is a known type id.
typeId | The type identifier. |
true
if the specified type id is known; otherwise, false
. Implements UnifiedAutomation.UaBase.ITypeTable.
bool UnifiedAutomation.UaClient.CacheManager.IsTypeOf | ( | ExpandedNodeId | subTypeId, |
ExpandedNodeId | superTypeId | ||
) |
Determines whether a type is a subtype of another type.
subTypeId | The subtype identifier. |
superTypeId | The supertype identifier. |
true
if superTypeId is supertype of subTypeId ; otherwise, false
. Implements UnifiedAutomation.UaBase.ITypeTable.
Determines whether a type is a subtype of another type.
subTypeId | The subtype identifier. |
superTypeId | The supertype identifier. |
true
if superTypeId is supertype of subTypeId ; otherwise, false
. Implements UnifiedAutomation.UaBase.ITypeTable.
|
getset |
Gets or sets the default request settings.
The default request settings.