public void generateReportResourceStats(SimRunStats rs) {
for (ResourceStats rr : rs.getResStats().values()){
Resource r = resAlloc.getResources().get(rr.getName());
if (repStats.getResStats().containsKey(r)){
ResourceStats rrs = repStats.getResStats().get(r);
rrs.incIdleTime(rr.getIdleTime());
rrs.incUtilizationRatio(rr.getUtilizationRatio());
} else {
ResourceStats rrs = new ResourceStats(rr.getName());
rrs.setIdleTime(rr.getIdleTime());
rrs.setUtilizationRatio(rr.getUtilizationRatio());
repStats.getResStats().put(r, rrs);
}
}
}