A base class for classes that implement an OPC COM specification.
Inheritance: ComProxy
Example #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;
        }
Example #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;
        }
        /// <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);
        }
Example #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);
        }