Maps the UA type model to a local
상속: ComNamespaceMapper
예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ComHdaBrowser"/> class.
        /// </summary>
        public ComAe2Browser(ComAe2Proxy server, ComAe2ProxyConfiguration configuration, ComAeNamespaceMapper mapper)
        {
            m_server = server;
            m_configuration = configuration;
            m_mapper = mapper;

            m_cache = new Dictionary<string, AeBrowseElement>();

            AeBrowseElement root = new AeBrowseElement();
            root.NodeId = Opc.Ua.ObjectIds.Server;
            root.ItemId = String.Empty;
            root.BrowseText = String.Empty;
            root.IsArea = true;
            root.Duplicated = false;

            m_cache[String.Empty] = root;
            m_position = root;
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ComHdaBrowser"/> class.
        /// </summary>
        public ComAe2Browser(ComAe2Proxy server, ComAe2ProxyConfiguration configuration, ComAeNamespaceMapper mapper)
        {
            m_server        = server;
            m_configuration = configuration;
            m_mapper        = mapper;

            m_cache = new Dictionary <string, AeBrowseElement>();

            AeBrowseElement root = new AeBrowseElement();

            root.NodeId     = Opc.Ua.ObjectIds.Server;
            root.ItemId     = String.Empty;
            root.BrowseText = String.Empty;
            root.IsArea     = true;
            root.Duplicated = false;

            m_cache[String.Empty] = root;
            m_position            = root;
        }
예제 #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ComHdaBrowser"/> class.
        /// </summary>
        public ComAe2Subscription(
            ComAe2Proxy server, 
            ComAe2ProxyConfiguration configuration,
            ComAeNamespaceMapper mapper,
            ComAe2Browser browser, 
            AeConditionManager conditionManager)
        {
            m_server = server;
            m_configuration = configuration;
            m_mapper = mapper;
            m_browser = browser;
            m_conditionManager = conditionManager;
            m_filter = new AeEventFilter(m_mapper);
            m_queue = new Queue<AeEvent>();
            m_notifiers = new NodeIdDictionary<MonitoredItem>();
            m_sourceNodes = new List<NodeId>();

            // set a default filters.
            m_filter.SetFilter(Constants.ALL_EVENTS, 0, UInt16.MaxValue, null, null); 
            UpdateAreaFilter(null);
            UpdateSourceFilter(null);
        }
예제 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ComHdaBrowser"/> class.
        /// </summary>
        public ComAe2Subscription(
            ComAe2Proxy server,
            ComAe2ProxyConfiguration configuration,
            ComAeNamespaceMapper mapper,
            ComAe2Browser browser,
            AeConditionManager conditionManager)
        {
            m_server           = server;
            m_configuration    = configuration;
            m_mapper           = mapper;
            m_browser          = browser;
            m_conditionManager = conditionManager;
            m_filter           = new AeEventFilter(m_mapper);
            m_queue            = new Queue <AeEvent>();
            m_notifiers        = new NodeIdDictionary <MonitoredItem>();
            m_sourceNodes      = new List <NodeId>();

            // set a default filters.
            m_filter.SetFilter(Constants.ALL_EVENTS, 0, UInt16.MaxValue, null, null);
            UpdateAreaFilter(null);
            UpdateSourceFilter(null);
        }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ComDaProxy"/> class.
 /// </summary>
 public ComAe2Proxy()
 {
     m_mapper           = new ComAeNamespaceMapper();
     m_subscriptions    = new List <ComAe2Subscription>();
     m_conditionManager = new AeConditionManager();
 }
예제 #6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ComDaProxy"/> class.
        /// </summary>
        public ComAe2Proxy()
		{
            m_mapper = new ComAeNamespaceMapper();
            m_subscriptions = new List<ComAe2Subscription>();
            m_conditionManager = new AeConditionManager();
        }
예제 #7
0
 /// <summary>
 /// Creates a new instance of an AeEventFilter.
 /// </summary>
 public AeEventFilter(ComAeNamespaceMapper mapper)
 {
     m_mapper = mapper;
 }