Package org.woped.quantana.model

Examples of org.woped.quantana.model.ResourceStats


      sst.setMaxWaitTime(s.getMaxWaitTime());
      sStats.put(s, sst);
    }
   
    for (Resource r : resAlloc.getResources().values()){
      ResourceStats rst = new ResourceStats(r.getName());
      rst.setIdleTime(runClock - r.getBusyTime());
      rst.setUtilizationRatio(r.getBusyTime() / runClock);
      rStats.put(r, rst);
    }   
    stats.setDuration(runClock);   
   
   
View Full Code Here


  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);
      }
    }
  }
View Full Code Here

    }
   
    for (int i = 0; i < resObjNum; i++) {
      String name = (String) rtm.getValueAt(i, 0);
      Resource r = res.get(name);
      ResourceStats rst = rs.getResStats().get(r);
     
      String util = String.format("%,.2f", rst.getUtilizationRatio()*100);
      rtm.setValueAt(util, i, 1);
    }
   
    if(ptk.isSelected()){
      // write the log into the text editor
View Full Code Here

TOP

Related Classes of org.woped.quantana.model.ResourceStats

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.