private void Run() { StartTime = DateTime.Now; InitializeHolders(); RunReport.ReportTopology(EdgeHolder.GetCopyList()); RunReport.ReportNodes(NodeHolder.GetCopyList(), true); foreach (var node in NodeHolder.GetCopyList().AsParallel()) { Task.Run(() => { node.UserDefined_SingleInitiatorProcedure(); }); } NodeHolder.StartTerminationDetection(); }
private void Run() { StartTime = DateTime.Now; InitializeHolders(); var graphGenerator = GraphFactory.GetGraphGenerator(GraphType); graphGenerator.Generate(NodeCount, NodeHolder, EdgeHolder, AlgorithmType); RunReport.ReportTopology(EdgeHolder.GetCopyList()); RunReport.ReportNodes(NodeHolder.GetCopyList(), true); foreach (var node in NodeHolder.GetCopyList().AsParallel()) { Task.Run(() => { node.UserDefined_SingleInitiatorProcedure(); }); } NodeHolder.StartTerminationDetection(); }