-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestDriver.java
59 lines (47 loc) · 1.13 KB
/
TestDriver.java
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import java.io.*;
import java.util.ArrayList;
public class TestDriver {
public static void main(String args[]) {
list_r test = new list_r();
ArrayList<ArrayList<String>> temp = new ArrayList<>();
ArrayList<String> arr1 = new ArrayList<String>();
ArrayList<String> arr2 = new ArrayList<String>();
ArrayList<String> arr3 = new ArrayList<String>();
ArrayList<String> arr4 = new ArrayList<String>();
ArrayList<String> arr5 = new ArrayList<String>();
arr1.add("a");
arr1.add("b");
arr1.add("+");
arr1.add("c");
arr2.add("d");
arr2.add("e");
arr2.add("*");
arr2.add("f");
arr3.add("h");
arr3.add("a");
arr3.add("+");
arr3.add("d");
arr4.add("x");
arr4.add("h");
arr4.add("+");
arr4.add("c");
arr5.add("g");
arr5.add("i");
arr5.add("+");
arr5.add("m");
temp.add(arr1);
temp.add(arr2);
temp.add(arr3);
temp.add(arr4);
temp.add(arr5);
test.addVertices(temp, 0);
test.addDependencies(temp, 0);
test.alap(5);
//test.printPredecessors();
//test.printInitialTimes();
//test.print_alap();
test.print_alap();
test.listR_Scheduling();
test.printFinalTime();
}
}