int newRate = 1;
String cdname = cd.getSymbol();
if(cdname.equals("SeriesRunner")) {
- newRate = 10;
+ newRate = 16;
} else if(cdname.equals("MapWorker")) {
newRate = 6;
} else if(cdname.equals("ReduceWorker")) {
/*do {
tint = r.nextInt()%10;
} while(tint <= 0);*/
- tint = 1;
+ tint = 3;
((FEdge)it_edges.next()).setExeTime(tint);
}
}
}
System.out.print("Selected schedulings with least exectution time " + processTime + ": \n\t");
for(int i = 0; i < selectedScheduling.size(); i++) {
- System.out.print(selectedScheduling.elementAt(i) + ", ");
+ System.out.print((selectedScheduling.elementAt(i) + 1) + ", ");
}
System.out.println();