-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRunAll.java
More file actions
33 lines (26 loc) · 1 KB
/
Copy pathRunAll.java
File metadata and controls
33 lines (26 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import model.MatrixBenchmark;
import test.MatrixTest;
import ui.MatrixGUI;
import ui.MatrixGUIController;
import javax.swing.SwingUtilities;
public class RunAll {
public static void main(String[] args) {
System.out.println("\n" + "=".repeat(70));
System.out.println("PARALLEL MATRIX MULTIPLICATION");
System.out.println("=".repeat(70));
// Step 1: Tests
System.out.println("\n[STEP 1/3] Running Correctness Tests...\n");
MatrixTest.main(args);
// Step 2: Threshold Tuning
System.out.println("\n[STEP 2/3] Running Threshold Tuning...\n");
MatrixBenchmark.main(args);
// Step 3: Launch GUI
System.out.println("\n[STEP 3/3] Launching GUI Application...\n");
SwingUtilities.invokeLater(() -> {
MatrixGUI view = new MatrixGUI();
new MatrixGUIController(view);
});
System.out.println("All tests complete. GUI is now running.");
System.out.println("=".repeat(70) + "\n");
}
}