- Timestamp:
- 08/28/13 13:24:11 (12 years ago)
- Location:
- DCWoRMS/branches/coolemall/src/test/article/recs/plugins/scheduling
- Files:
-
- 1 deleted
- 4 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(); -
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(); -
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(); -
DCWoRMS/branches/coolemall/src/test/article/recs/plugins/scheduling/RecsSP.java
r708 r1197 8 8 9 9 import schedframe.resources.computing.ComputingNode; 10 import schedframe.resources.computing.Processor; 10 11 import schedframe.scheduling.tasks.TaskInterface; 11 12 import test.article.recs.utils.AppType; 12 13 import test.article.recs.utils.TaskToApp; 13 import dcworms.schedframe.scheduling.ExecTask;14 14 import dcworms.schedframe.scheduling.Executable; 15 15 import example.localplugin.BaseLocalSchedulingPlugin; … … 33 33 } 34 34 35 pr ivate String getApplicationType(ExecTasktask){35 protected String getApplicationType(TaskInterface<?> task){ 36 36 AppType appType = taskToApp.getAppType(task); 37 37 return appType.toString(); 38 38 } 39 39 40 pr ivateString getNodeCategory(ComputingNode node){40 protected String getNodeCategory(ComputingNode node){ 41 41 return node.getCategory(); 42 42 } 43 43 44 protected int getCoreCnt(TaskInterface<?> task){ 45 double cpuReq; 46 try { 47 cpuReq = task.getCpuCntRequest(); 48 } catch (NoSuchFieldException e) { 49 cpuReq = 1; 50 } 51 return Double.valueOf(cpuReq).intValue(); 52 } 53 54 protected int getFrequency(ComputingNode node){ 55 Processor proc = (Processor) node.getProcessors().get(0); 56 double freq = proc.getPowerInterface().getFrequency(); 57 return Double.valueOf(freq).intValue(); 58 } 59 44 60 protected boolean getExecutiveness(String query) throws FileNotFoundException, IOException{ 45 61 ResourceBundle execBundle = getExecBundle();
Note: See TracChangeset
for help on using the changeset viewer.