Changeset 1197 for DCWoRMS/branches/coolemall/src/test/article/recs/plugins/scheduling/RecsExclusivenessEnOptNodePowManSP.java
- Timestamp:
- 08/28/13 13:24:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/test/article/recs/plugins/scheduling/RecsExclusivenessEnOptNodePowManSP.java
r734 r1197 36 36 import schedframe.scheduling.queue.TaskQueueList; 37 37 import schedframe.scheduling.tasks.TaskInterface; 38 import test.article.recs.utils.AppType;39 38 40 39 public class RecsExclusivenessEnOptNodePowManSP extends RecsSP { … … 162 161 } 163 162 164 private String getApplicationType(TaskInterface<?> task){165 AppType appType = taskToApp.getAppType(task);166 return appType.toString();167 }168 169 private String getNodeCategory(ComputingNode node){170 171 return node.getCategory();172 }173 174 private int getFrequency(ComputingNode node){175 Processor proc = (Processor) node.getProcessors().get(0);176 double freq = proc.getPowerInterface().getFrequency();177 return Double.valueOf(freq).intValue();178 }179 180 private int getCoreCnt(TaskInterface<?> task){181 double cpuReq;182 try {183 cpuReq = task.getCpuCntRequest();184 } catch (NoSuchFieldException e) {185 cpuReq = 1;186 }187 return Double.valueOf(cpuReq).intValue();188 }189 190 163 protected double getMeasuredPower(String query) throws FileNotFoundException, IOException{ 191 164 ResourceBundle powBundle = getPowBundle();
Note: See TracChangeset
for help on using the changeset viewer.