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

A class that manages the mapping between the local and remote namespace indexes.
Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Méthodes publiques

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

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

Initializes a new instance of the ComNamespaceMapper class.
public ComNamespaceMapper ( ) : System
Résultat System

GetLocalBrowseName() public méthode

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

GetLocalDataValue() public méthode

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

GetLocalIntegerIdMapping() public méthode

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

GetLocalItemId() public méthode

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

GetLocalNamespaceIndex() public méthode

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

GetLocalNodeId() public méthode

Gets the local node id.
public GetLocalNodeId ( NodeId remoteId ) : NodeId
remoteId NodeId The remote id.
Résultat NodeId

GetLocalQualifiedName() public méthode

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

GetLocalServerIndex() public méthode

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

GetLocalValue() public méthode

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

GetLocaleExpandedNodeId() public méthode

Gets the local node id.
public GetLocaleExpandedNodeId ( ExpandedNodeId remoteId ) : ExpandedNodeId
remoteId ExpandedNodeId The remote id.
Résultat ExpandedNodeId

GetRemoteBrowseName() public méthode

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

GetRemoteBrowsePaths() public méthode

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

GetRemoteDataValue() public méthode

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

GetRemoteExpandedNodeId() public méthode

Gets the remote node id.
public GetRemoteExpandedNodeId ( ExpandedNodeId localId ) : ExpandedNodeId
localId ExpandedNodeId The local id.
Résultat ExpandedNodeId

GetRemoteIntegerIdMapping() public méthode

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

GetRemoteNamespaceIndex() public méthode

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

GetRemoteNodeId() public méthode

Gets the remote node id.
public GetRemoteNodeId ( NodeId localId ) : NodeId
localId NodeId The local id.
Résultat NodeId

GetRemoteNodeId() public méthode

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

GetRemoteQualifiedName() public méthode

Gets the remote qualified name.
public GetRemoteQualifiedName ( QualifiedName localName ) : QualifiedName
localName QualifiedName The local qualified name.
Résultat QualifiedName

GetRemoteServerIndex() public méthode

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

GetRemoteValue() public méthode

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

Initialize() public méthode

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

UpdateMappingSet() public méthode

Updates an integer id mapping set.
public UpdateMappingSet ( NodeIdMappingSet mappingSet ) : void
mappingSet NodeIdMappingSet
Résultat void