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