C# Class Opc.Ua.Com.Server.ComNamespaceMapper

A class that manages the mapping between the local and remote namespace indexes.
ファイルを表示 Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

ComNamespaceMapper() public method

Initializes a new instance of the ComNamespaceMapper class.
public ComNamespaceMapper ( ) : System
return System

GetLocalBrowseName() public method

Gets the local name for the qualified name,
public GetLocalBrowseName ( QualifiedName browseName ) : string
browseName QualifiedName The remote qualified name.
return string

GetLocalDataValue() public method

Gets the local data value.
public GetLocalDataValue ( DataValue remoteValue ) : DaValue
remoteValue DataValue The remote value.
return DaValue

GetLocalIntegerIdMapping() public method

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.
return uint

GetLocalItemId() public method

Constructs an item id from a node id.
public GetLocalItemId ( NodeId nodeId ) : string
nodeId NodeId The node id.
return string

GetLocalNamespaceIndex() public method

Gets the local index for the remote namespace index.
public GetLocalNamespaceIndex ( ushort remoteIndex ) : ushort
remoteIndex ushort The remote namespace index.
return ushort

GetLocalNodeId() public method

Gets the local node id.
public GetLocalNodeId ( NodeId remoteId ) : NodeId
remoteId NodeId The remote id.
return NodeId

GetLocalQualifiedName() public method

Gets the c qualified name.
public GetLocalQualifiedName ( QualifiedName localName ) : QualifiedName
localName QualifiedName Name of the local.
return QualifiedName

GetLocalServerIndex() public method

Gets the local index for the remote server index.
public GetLocalServerIndex ( ushort remoteIndex ) : uint
remoteIndex ushort The remote server index.
return uint

GetLocalValue() public method

Converts a remote variant value to a local variant value.
public GetLocalValue ( Variant remoteValue ) : object
remoteValue Variant The remote value.
return object

GetLocaleExpandedNodeId() public method

Gets the local node id.
public GetLocaleExpandedNodeId ( ExpandedNodeId remoteId ) : ExpandedNodeId
remoteId ExpandedNodeId The remote id.
return ExpandedNodeId

GetRemoteBrowseName() public method

Gets the remote qualified name for the local name.
public GetRemoteBrowseName ( string browseName ) : QualifiedName
browseName string The local qualified name.
return QualifiedName

GetRemoteBrowsePaths() public method

Returns a list of remote browse paths for a list of local relative paths.
public GetRemoteBrowsePaths ( NodeId localNodeId ) : BrowsePathCollection
localNodeId NodeId
return BrowsePathCollection

GetRemoteDataValue() public method

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.
return DataValue

GetRemoteExpandedNodeId() public method

Gets the remote node id.
public GetRemoteExpandedNodeId ( ExpandedNodeId localId ) : ExpandedNodeId
localId ExpandedNodeId The local id.
return ExpandedNodeId

GetRemoteIntegerIdMapping() public method

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.
return NodeId

GetRemoteNamespaceIndex() public method

Gets the remote index for the local namespace index.
public GetRemoteNamespaceIndex ( ushort localIndex ) : ushort
localIndex ushort The local namespace index.
return ushort

GetRemoteNodeId() public method

Gets the remote node id.
public GetRemoteNodeId ( NodeId localId ) : NodeId
localId NodeId The local id.
return NodeId

GetRemoteNodeId() public method

Constructs a node id from an item id.
public GetRemoteNodeId ( string itemId ) : NodeId
itemId string The item id.
return NodeId

GetRemoteQualifiedName() public method

Gets the remote qualified name.
public GetRemoteQualifiedName ( QualifiedName localName ) : QualifiedName
localName QualifiedName The local qualified name.
return QualifiedName

GetRemoteServerIndex() public method

Gets the remote index for the local server index.
public GetRemoteServerIndex ( uint localIndex ) : uint
localIndex uint The local server index.
return uint

GetRemoteValue() public method

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.
return Variant

Initialize() public method

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.
return void

UpdateMappingSet() public method

Updates an integer id mapping set.
public UpdateMappingSet ( NodeIdMappingSet mappingSet ) : void
mappingSet NodeIdMappingSet
return void