protected override void OnRootNodeManagerStarted(RootNodeManager nodeManager) { Console.WriteLine("Creating Node Managers."); OpcNodeManager opcNode = new OpcNodeManager(this); opcNode.Startup(); }
protected override void OnRootNodeManagerStarted(RootNodeManager nodeManager) { GodNodManager god = new GodNodManager(this); god.Startup(); base.OnRootNodeManagerStarted(nodeManager); }
protected override void OnRootNodeManagerStarted(RootNodeManager nodeManager) { Lesson1NodeManager lesson1 = new Lesson1NodeManager(this); lesson1.Startup(); base.OnRootNodeManagerStarted(nodeManager); }
/// [OnRootNodeManagerStarted] protected override void OnRootNodeManagerStarted(RootNodeManager nodeManager) { Console.WriteLine("Creating Node Managers..."); KNodeManager knm = new KNodeManager(this); knm.Startup(); }
protected override void OnRootNodeManagerStarted(RootNodeManager nodeManager) { Console.WriteLine("Creating Node Managers."); //Lesson3aNodeManager lession3a = new Lesson3aNodeManager(this); //lession3a.Startup(); Lesson3bNodeManager lession3b = new Lesson3bNodeManager(this); lession3b.Startup(); }
/// <summary> /// 获取全部数据。搜索Dir目录下的Xml文件,并且读取文件中RootName节点的数据;返回一个List<SensitiveData>数据 /// </summary> /// <returns></returns> public void GetAllData(RootNodeManager rootNodeManager) { if (!IsInitialize) { return; } //从目录Dir中读取数据 string[] files = Directory.GetFiles(Dir, "*.xml"); foreach (var file in files) { XmlDocument xmdDoc = new XmlDocument(); try { xmdDoc.Load(file); } catch (Exception ex) { Console.WriteLine(ex.Message); continue; } if (xmdDoc.DocumentElement == null || xmdDoc.DocumentElement.Name != ConstDefinition.RootName || !xmdDoc.DocumentElement.HasAttribute(NodeName) || !xmdDoc.DocumentElement.HasAttribute("SensitiveId")) { continue; } //新建、获取RootNode节点curRootNode string rootNodeName = xmdDoc.DocumentElement.GetAttribute(NodeName); string sensitiveId = xmdDoc.DocumentElement.GetAttribute("SensitiveId"); if (!rootNodeManager.Children.Keys.Contains(rootNodeName)) { rootNodeManager.Children.Add(rootNodeName, new RootNode(rootNodeName)); } RootNode curRootNode = (RootNode)rootNodeManager.Children[rootNodeName]; XmlNodeList categoryNodes = xmdDoc.DocumentElement.ChildNodes; foreach (XmlElement categoryNode in categoryNodes) { //新建、获取CategoryNode节点curNode if (!categoryNode.HasAttribute(NodeName)) { continue; } string categoryName = categoryNode.GetAttribute(NodeName); if (!curRootNode.Children.Keys.Contains(categoryName)) { CategoryNode node = new CategoryNode() { NodeName = categoryName }; curRootNode.Children.Add(categoryName, node); } CategoryNode curCategoryNode = (CategoryNode)curRootNode.Children[categoryName]; foreach (XmlElement item in categoryNode.ChildNodes) { //新建、获取DataNode节点 if (item.HasAttribute("Value")) { string value = item.Attributes["Value"].Value; curCategoryNode.DataList.Add(new DataNode() { SensitiveData = new SensitiveData(rootNodeName, categoryName, sensitiveId, value) }); } } } } }
protected override void OnRootNodeManagerStarted(RootNodeManager nodeManager) { INManager = new InternalNodeManager(this, InternalUris); INManager.Startup(); }
protected override void OnRootNodeManagerStarted(RootNodeManager nodeManager) { UnifiedAutomation.UaServer.BaseNodeManager nm; nm = new PolslMacrocourse.DcsLab.DcsLabNodeManager(this); nm.Startup(); }
protected override void OnRootNodeManagerStarted(RootNodeManager nodeManager) { UnifiedAutomation.UaServer.BaseNodeManager nm; nm = new thi.opcfhir.opcfhirNodeManager(this); nm.Startup(); }