예제 #1
0
 public frmSplitModels_Rigids()
 {
     InitializeComponent();
     graph           = new gProAnalyzer.GraphVariables.clsGraph();
     clsSESE         = new gProAnalyzer.GraphVariables.clsSESE();
     clsLoop         = new gProAnalyzer.GraphVariables.clsLoop();
     clsHWLS         = new gProAnalyzer.GraphVariables.clsHWLS();
     clsError        = new gProAnalyzer.GraphVariables.clsError();
     loadGraph       = new gProAnalyzer.Preprocessing.clsLoadGraph();
     runSESE         = new gProAnalyzer.Run_Analysis_SESE();
     runVerification = new gProAnalyzer.Run_Analysis_Verification();
 }
예제 #2
0
파일: Testing.cs 프로젝트: ngoclongha/PBR
        public int RunTest(ref gProAnalyzer.GraphVariables.clsGraph graph, ref gProAnalyzer.GraphVariables.clsHWLS clsHWLS, ref gProAnalyzer.GraphVariables.clsLoop clsLoop,
                           ref gProAnalyzer.GraphVariables.clsSESE clsSESE, int numRun)
        {
            duration = 0;
            HiPerfTimer pt = new HiPerfTimer();

            pt.Start();

            for (int i = 0; i < numRun; i++)
            {
                Initialize_All();

                //SplitType1.Run_Split_Type1(ref graph, graph.orgNet, graph.midNet);

                //findLoop.Run_FindLoop(ref graph, graph.midNet, ref clsLoop, clsLoop.orgLoop, ref clsLoop.IrreducibleError);

                graph.Network[graph.finalNet] = graph.Network[graph.orgNet];
                //SplitType2.Run_Split_Type2(ref graph, graph.midNet, graph.finalNet, ref clsLoop, clsLoop.orgLoop);

                gProAnalyzer.Functionalities.DominanceIdentification.find_Dom(ref graph, graph.finalNet);
                gProAnalyzer.Functionalities.DominanceIdentification.find_Pdom(ref graph, graph.finalNet);
                gProAnalyzer.Functionalities.DominanceIdentification.find_DomEI(ref graph, graph.finalNet, -2);
                gProAnalyzer.Functionalities.DominanceIdentification.find_PdomEI(ref graph, graph.finalNet);

                //sese.find_SESE_WithLoop(ref graph, graph.finalNet, ref clsLoop, clsLoop.orgLoop, ref clsSESE, clsSESE.finalSESE, -2);
                gProAnalyzer.Functionalities.SESEIdentification.find_SESE_Dummy(ref graph, graph.finalNet, ref clsLoop, clsLoop.orgLoop, ref clsSESE, clsSESE.finalSESE, -2);


                gProAnalyzer.Functionalities.NodeSplittingType3.Run_Split_Type3(ref graph, graph.finalNet, ref clsLoop, clsLoop.orgLoop, ref clsSESE, clsSESE.finalSESE, true);

                //Decompose cyclic subgraphs

                //Make nesting forest?
                gProAnalyzer.Ultilities.makeNestingForest.make_NestingForest(ref graph, graph.finalNet, ref clsHWLS, ref clsLoop, clsLoop.orgLoop, ref clsSESE, clsSESE.finalSESE);
            }

            pt.Stop();
            duration += pt.Duration;

            duration = duration / (double)numRun;
            duration = duration * 1000;

            //makInst.make_InstanceFlow(ref graph, graph.finalNet, 0, "", "");

            //==================================================
            //== get initial behavior profile ==
            //graph.Network[graph.reduceNet] = graph.Network[graph.finalNet];
            //extendG.full_extentNetwork(ref graph, graph.reduceNet, 0, 0);
            //indexing.get_InitialBehaviorProfile(ref graph, graph.reduceNet, ref clsHWLS, ref clsLoop, clsLoop.orgLoop, ref clsSESE, clsSESE.finalSESE);
            //Database storing

            return(0);
        }
예제 #3
0
        public frmBasicSimulation()
        {
            loadG    = new Preprocessing.clsLoadGraph();
            graph    = new GraphVariables.clsGraph();
            clsLoop  = new GraphVariables.clsLoop();
            clsSESE  = new GraphVariables.clsSESE();
            clsHWLS  = new gProAnalyzer.GraphVariables.clsHWLS();
            clsError = new gProAnalyzer.GraphVariables.clsError();

            test            = new gProAnalyzer.Testing();
            runVerification = new gProAnalyzer.Run_Analysis_Verification();

            InitializeComponent();
        }
예제 #4
0
        public Dashboard_Experiment()
        {
            InitializeComponent();
            loadG           = new Preprocessing.clsLoadGraph();
            graph           = new GraphVariables.clsGraph();
            clsLoop         = new GraphVariables.clsLoop();
            clsSESE         = new GraphVariables.clsSESE();
            clsHWLS         = new gProAnalyzer.GraphVariables.clsHWLS();
            clsError        = new gProAnalyzer.GraphVariables.clsError();
            runVerification = new gProAnalyzer.Run_Analysis_Verification();

            progressBar1.Visible = false;
            btnRun.Visible       = false;
            exportExcel.Visible  = false;
        }
예제 #5
0
        private void indexingProcessesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            gProAnalyzer.GraphVariables.clsGraph            graph; // m_Network represent the class "clsAnalysisNetwork"
            gProAnalyzer.Preprocessing.clsLoadGraph         loadGraph;
            gProAnalyzer.GraphVariables.clsLoop             clsLoop;
            gProAnalyzer.GraphVariables.clsSESE             clsSESE;
            gProAnalyzer.GraphVariables.clsHWLS             clsHWLS;
            gProAnalyzer.GraphVariables.clsHWLS             clsHWLS_Untangle;
            gProAnalyzer.Functionalities.LoopIdentification loopNode;
            gProAnalyzer.Functionalities.IndexingPM         indexing;

            //Initialized All
            graph            = new gProAnalyzer.GraphVariables.clsGraph();
            clsLoop          = new GraphVariables.clsLoop();
            clsSESE          = new GraphVariables.clsSESE();
            loopNode         = new gProAnalyzer.Functionalities.LoopIdentification();
            loadGraph        = new gProAnalyzer.Preprocessing.clsLoadGraph();
            clsHWLS          = new gProAnalyzer.GraphVariables.clsHWLS();
            clsHWLS_Untangle = new gProAnalyzer.GraphVariables.clsHWLS();
            indexing         = new gProAnalyzer.Functionalities.IndexingPM();

            //load file
            openFileDialog.Title    = "Browse";
            openFileDialog.Filter   = "Network Documents (*.net) | *.net";
            openFileDialog.FileName = "";
            openFileDialog.ShowDialog();
            if (openFileDialog.FileName == "")
            {
                return;
            }

            string sFilePath = openFileDialog.FileName;

            //lblFileName.Text = openFileDialog.SafeFileName;

            loadGraph.Load_Data(ref graph, graph.orgNet, sFilePath, true);
            //Display information to tabInform
            this.Text = "AnalysisNetwork  --  " + openFileDialog.SafeFileName;

            //gProAnalyzer.Functionalities.IndexingPM.start_Indexing(ref graph, ref clsHWLS, ref clsHWLS_Untangle, ref clsLoop, ref clsSESE);
        }