Exemplo n.º 1
0
 private void Button_Click_8(object sender, RoutedEventArgs e)
 {
     if (url == null)
     {
         //Alert msg
         MessageBox.Show("Please import file.");
     }
     else
     {
         var instance1 = new FCFS();
         instance1.SortProcess(ObjList, row, result);
         var instance2 = new PS_NP();
         instance2.SortProcess(ObjList, totalTime, row, result);
         var instance3 = new SJF_NP();
         instance3.SortProcess(ObjList, totalTime, row, result);
         var instance4 = new RR();
         instance4.SortProcess(ObjList, totalTime, row, result);
         var instance5 = new PS_P();
         instance5.SortProcess(ObjList, totalTime, row, result);
         var instance6 = new SJF_P();
         instance6.SortProcess(ObjList, totalTime, row, result);
         var instance7 = new Analysis();
         output.Text += $"\n\n============== Anatysis All Algorithm ==============\n";
         output.Text += $"{instance7.AnalysisResult(result)}";
         output.Text += $"\n\n===========================================\n";
         result       = new List <Result>();
     }
 }
Exemplo n.º 2
0
 private void Button_Click_7(object sender, RoutedEventArgs e)
 {
     if (url == null)
     {
         //Alert msg
         MessageBox.Show("Please import file.");
     }
     else
     {
         var instance4 = new RR();
         output.Text += $"\n\n Round Robin : {instance4.SortProcess(ObjList, totalTime, row, result)}";
     }
 }