C# Класс Opc.Ua.Com.Server.ComNamespaceMapper

A class that manages the mapping between the local and remote namespace indexes.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ComNamespaceMapper ( ) : System

Initializes a new instance of the ComNamespaceMapper class.

GetLocalBrowseName ( QualifiedName browseName ) : string

Gets the local name for the qualified name,

GetLocalDataValue ( DataValue remoteValue ) : DaValue

Gets the local data value.

GetLocalIntegerIdMapping ( string mappingType, NodeId remoteId ) : uint

Gets the integer mapping for a remote node id.

GetLocalItemId ( NodeId nodeId ) : string

Constructs an item id from a node id.

GetLocalNamespaceIndex ( ushort remoteIndex ) : ushort

Gets the local index for the remote namespace index.

GetLocalNodeId ( NodeId remoteId ) : NodeId

Gets the local node id.

GetLocalQualifiedName ( QualifiedName localName ) : QualifiedName

Gets the c qualified name.

GetLocalServerIndex ( ushort remoteIndex ) : uint

Gets the local index for the remote server index.

GetLocalValue ( Variant remoteValue ) : object

Converts a remote variant value to a local variant value.

GetLocaleExpandedNodeId ( ExpandedNodeId remoteId ) : ExpandedNodeId

Gets the local node id.

GetRemoteBrowseName ( string browseName ) : QualifiedName

Gets the remote qualified name for the local name.

GetRemoteBrowsePaths ( NodeId localNodeId ) : BrowsePathCollection

Returns a list of remote browse paths for a list of local relative paths.

GetRemoteDataValue ( DaValue localValue, TypeInfo remoteType ) : DataValue

Gets the remote data value.

GetRemoteExpandedNodeId ( ExpandedNodeId localId ) : ExpandedNodeId

Gets the remote node id.

GetRemoteIntegerIdMapping ( string mappingType, uint integerId ) : NodeId

Gets the remote node id associated with an integer id.

GetRemoteNamespaceIndex ( ushort localIndex ) : ushort

Gets the remote index for the local namespace index.

GetRemoteNodeId ( NodeId localId ) : NodeId

Gets the remote node id.

GetRemoteNodeId ( string itemId ) : NodeId

Constructs a node id from an item id.

GetRemoteQualifiedName ( QualifiedName localName ) : QualifiedName

Gets the remote qualified name.

GetRemoteServerIndex ( uint localIndex ) : uint

Gets the remote index for the local server index.

GetRemoteValue ( Variant localeValue, TypeInfo remoteType ) : Variant

Converts a local variant value to a remote variant value.

Initialize ( Session session, ComProxyConfiguration configuration ) : void

Initializes the namespace mappings and updates the proxy configuration.

UpdateMappingSet ( NodeIdMappingSet mappingSet ) : void

Updates an integer id mapping set.

Приватные методы

Метод Описание
ConvertLocalToRemote ( object srcValue, BuiltInType srcType, BuiltInType dstType ) : object

Converts a local value to a remote value.

ConvertRemoteToLocal ( object srcValue, BuiltInType srcType, BuiltInType dstType ) : object

Converts a remote value to a local value.

GetLocalTypeInfo ( TypeInfo remoteType ) : TypeInfo

Gets the local type info.

IsEscapedChar ( char ch ) : bool

Returns true if char is one of the special chars that must be escaped.

ToHexDigit ( char ch ) : int

Converts to char to a hex number. Returns -1 if char is invalid.

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

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

Initializes a new instance of the ComNamespaceMapper class.
public ComNamespaceMapper ( ) : System
Результат System

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

Gets the local name for the qualified name,
public GetLocalBrowseName ( QualifiedName browseName ) : string
browseName QualifiedName The remote qualified name.
Результат string

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

Gets the local data value.
public GetLocalDataValue ( DataValue remoteValue ) : DaValue
remoteValue DataValue The remote value.
Результат DaValue

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

Gets the integer mapping for a remote node id.
public GetLocalIntegerIdMapping ( string mappingType, NodeId remoteId ) : uint
mappingType string Type of the mapping.
remoteId NodeId The remote node id.
Результат uint

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

Constructs an item id from a node id.
public GetLocalItemId ( NodeId nodeId ) : string
nodeId NodeId The node id.
Результат string

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

Gets the local index for the remote namespace index.
public GetLocalNamespaceIndex ( ushort remoteIndex ) : ushort
remoteIndex ushort The remote namespace index.
Результат ushort

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

Gets the local node id.
public GetLocalNodeId ( NodeId remoteId ) : NodeId
remoteId NodeId The remote id.
Результат NodeId

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

Gets the c qualified name.
public GetLocalQualifiedName ( QualifiedName localName ) : QualifiedName
localName QualifiedName Name of the local.
Результат QualifiedName

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

Gets the local index for the remote server index.
public GetLocalServerIndex ( ushort remoteIndex ) : uint
remoteIndex ushort The remote server index.
Результат uint

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

Converts a remote variant value to a local variant value.
public GetLocalValue ( Variant remoteValue ) : object
remoteValue Variant The remote value.
Результат object

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

Gets the local node id.
public GetLocaleExpandedNodeId ( ExpandedNodeId remoteId ) : ExpandedNodeId
remoteId ExpandedNodeId The remote id.
Результат ExpandedNodeId

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

Gets the remote qualified name for the local name.
public GetRemoteBrowseName ( string browseName ) : QualifiedName
browseName string The local qualified name.
Результат QualifiedName

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

Returns a list of remote browse paths for a list of local relative paths.
public GetRemoteBrowsePaths ( NodeId localNodeId ) : BrowsePathCollection
localNodeId NodeId
Результат BrowsePathCollection

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

Gets the remote data value.
Thrown if a conversion error occurs.
public GetRemoteDataValue ( DaValue localValue, TypeInfo remoteType ) : DataValue
localValue DaValue The local value.
remoteType TypeInfo The remote data type.
Результат DataValue

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

Gets the remote node id.
public GetRemoteExpandedNodeId ( ExpandedNodeId localId ) : ExpandedNodeId
localId ExpandedNodeId The local id.
Результат ExpandedNodeId

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

Gets the remote node id associated with an integer id.
public GetRemoteIntegerIdMapping ( string mappingType, uint integerId ) : NodeId
mappingType string Type of the mapping.
integerId uint The integer id.
Результат NodeId

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

Gets the remote index for the local namespace index.
public GetRemoteNamespaceIndex ( ushort localIndex ) : ushort
localIndex ushort The local namespace index.
Результат ushort

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

Gets the remote node id.
public GetRemoteNodeId ( NodeId localId ) : NodeId
localId NodeId The local id.
Результат NodeId

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

Constructs a node id from an item id.
public GetRemoteNodeId ( string itemId ) : NodeId
itemId string The item id.
Результат NodeId

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

Gets the remote qualified name.
public GetRemoteQualifiedName ( QualifiedName localName ) : QualifiedName
localName QualifiedName The local qualified name.
Результат QualifiedName

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

Gets the remote index for the local server index.
public GetRemoteServerIndex ( uint localIndex ) : uint
localIndex uint The local server index.
Результат uint

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

Converts a local variant value to a remote variant value.
public GetRemoteValue ( Variant localeValue, TypeInfo remoteType ) : Variant
localeValue Variant The local value.
remoteType TypeInfo The expected type for the remote value.
Результат Variant

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

Initializes the namespace mappings and updates the proxy configuration.
public Initialize ( Session session, ComProxyConfiguration configuration ) : void
session Opc.Ua.Client.Session The session.
configuration ComProxyConfiguration The configuration.
Результат void

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

Updates an integer id mapping set.
public UpdateMappingSet ( NodeIdMappingSet mappingSet ) : void
mappingSet NodeIdMappingSet
Результат void