Accumulate sizeWait = waitingList.statSize();
Tally sojWait = waitingList.statSojourn();
Tally sojServ = serviceList.statSojourn();
PrintfFormat str = new PrintfFormat();
str.append ("REPORT ON RESOURCE : ").append (name).append (PrintfFormat.NEWLINE);
str.append (" From time : ").append (7, 2, 2, initStatTime);
str.append (" to time : ");
str.append (10,2, 2, sim.time());
str.append (PrintfFormat.NEWLINE + " min max average ");
str.append ("standard dev. nb. obs.");
str.append (PrintfFormat.NEWLINE + " Capacity ");
str.append (8, (int)(statCapacity.min()+0.5));
str.append (11, (int)(statCapacity.max()+0.5));
str.append (12, 3, 2, statCapacity.average());
str.append (PrintfFormat.NEWLINE + " Utilization ");
str.append (8, (int)(statUtil.min()+0.5));
str.append (11, (int)(statUtil.max()+0.5));
str.append (12, 3, 2, statUtil.average());
str.append (PrintfFormat.NEWLINE + " Queue Size ");
str.append (8, (int)(sizeWait.min()+0.5));
str.append (11, (int)(sizeWait.max()+0.5));
str.append (12, 3, 2, sizeWait.average());
str.append (PrintfFormat.NEWLINE + " Wait ");
str.append (12, 3, 2, sojWait.min()).append (' ');
str.append (10, 3, 2, sojWait.max()).append (' ');
str.append (11, 3, 2, sojWait.average()).append (' ');
str.append (10, 3, 2, sojWait.standardDeviation());
str.append (10, sojWait.numberObs());
str.append (PrintfFormat.NEWLINE + " Service ");
str.append (12, 3, 2, sojServ.min()).append (' ');
str.append (10, 3, 2, sojServ.max()).append (' ');
str.append (11, 3, 2, sojServ.average()).append (' ');
str.append (10, 3, 2, sojServ.standardDeviation());
str.append (10, sojServ.numberObs());
str.append (PrintfFormat.NEWLINE + " Sojourn ");
str.append (12, 3, 2, statSojourn.min()).append (' ');
str.append (10, 3, 2, statSojourn.max()).append (' ');
str.append (11, 3, 2, statSojourn.average()).append (' ');
str.append (10, 3, 2, statSojourn.standardDeviation());
str.append (10, statSojourn.numberObs()).append (PrintfFormat.NEWLINE);
return str.toString();
}