1 public class Composer {
10 public Composer(int numCore,
12 this.numCore = numCore;
13 this.num_composed = 0;
14 heightPerCore = size/this.numCore;
17 //this.image=new int[size][];
22 public boolean compose(TestRunner tr) {
24 int startidx=0; //heightPerCore * tr.id;
25 int endidx=this.heightPerCore; //startidx + heightPerCore;
26 for(int i = startidx; i < endidx; i++) {
27 //this.image[i] = tr.image[i];
28 for(int j = 0; j < this.heightPerCore*this.numCore; j++) {
29 this.result += tr.image[i][j];
32 this.result1 += tr.checksum;
33 return this.num_composed == this.numCore;