-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.java
38 lines (31 loc) · 1.04 KB
/
Main.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
public class Main {
public static void main(String[] args) {
/*
job j0 = new job(0,0,"H",3);
job j1 = new job(0,1,"L",3);
//job j2 = new job(1,2,"L",3);
job j2 = new job(1,2,"L",3);
job j3 = new job(1,3,"M",3);
job j4 = new job(2,4,"H",3);
*/
job j0 = new job(10,0,"H",3);
job j1 = new job(0,1,"H",2);
//job j2 = new job(1,2,"L",3);
job j2 = new job(0,2,"M",3);
job j3 = new job(3,3,"H",3);
Scheduler programlayici = new Scheduler();
programlayici.setResourceCount(2);
programlayici.add(j0);
programlayici.add(j1);
programlayici.add(j2);
programlayici.add(j3);
//programlayici.add(j4);
programlayici.run();
System.out.println("-------");
programlayici.utilization(1);
System.out.println("-------");
programlayici.resourceExplorer(2);
System.out.println("-------");
programlayici.jobExplorer(j3);
}
}