Changeset 1197 for DCWoRMS/branches/coolemall/src/test/article/recs/plugins/scheduling/RecsExclusivenessEnOptDFSSP.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/RecsExclusivenessEnOptDFSSP.java
r734 r1197 22 22 import schedframe.resources.computing.Core; 23 23 import schedframe.resources.computing.Processor; 24 import schedframe.resources.computing.profiles.energy.power.StandardPowerStateName;25 24 import schedframe.resources.units.ProcessingElements; 26 25 import schedframe.resources.units.ResourceUnit; … … 36 35 import schedframe.scheduling.queue.TaskQueueList; 37 36 import schedframe.scheduling.tasks.TaskInterface; 38 import test.article.recs.utils.AppType;39 37 import test.article.recs.utils.RecsProcessorPowerInterface; 40 38 … … 160 158 } 161 159 162 private String getApplicationType(TaskInterface<?> task){163 AppType appType = taskToApp.getAppType(task);164 return appType.toString();165 }166 167 private String getNodeCategory(ComputingNode node){168 169 return node.getCategory();170 }171 172 private int getFrequency(ComputingNode node){173 Processor proc = (Processor) node.getProcessors().get(0);174 double freq = proc.getPowerInterface().getFrequency();175 return Double.valueOf(freq).intValue();176 }177 178 private int getCoreCnt(TaskInterface<?> task){179 double cpuReq;180 try {181 cpuReq = task.getCpuCntRequest();182 } catch (NoSuchFieldException e) {183 cpuReq = 1;184 }185 return Double.valueOf(cpuReq).intValue();186 }187 188 160 protected double getMeasuredPower(String query) throws FileNotFoundException, IOException{ 189 161 ResourceBundle powBundle = getPowBundle();
Note: See TracChangeset
for help on using the changeset viewer.