Ignore:
Timestamp:
08/28/13 13:24:11 (12 years ago)
Author:
wojtekp
Message:
 
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  
    2222import schedframe.resources.computing.Core; 
    2323import schedframe.resources.computing.Processor; 
    24 import schedframe.resources.computing.profiles.energy.power.StandardPowerStateName; 
    2524import schedframe.resources.units.ProcessingElements; 
    2625import schedframe.resources.units.ResourceUnit; 
     
    3635import schedframe.scheduling.queue.TaskQueueList; 
    3736import schedframe.scheduling.tasks.TaskInterface; 
    38 import test.article.recs.utils.AppType; 
    3937import test.article.recs.utils.RecsProcessorPowerInterface; 
    4038 
     
    160158        } 
    161159 
    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          
    188160        protected double getMeasuredPower(String query) throws FileNotFoundException, IOException{ 
    189161                ResourceBundle powBundle = getPowBundle(); 
  • DCWoRMS/branches/coolemall/src/test/article/recs/plugins/scheduling/RecsExclusivenessEnOptNodePowManSP.java

    r734 r1197  
    3636import schedframe.scheduling.queue.TaskQueueList; 
    3737import schedframe.scheduling.tasks.TaskInterface; 
    38 import test.article.recs.utils.AppType; 
    3938 
    4039public class RecsExclusivenessEnOptNodePowManSP  extends RecsSP { 
     
    162161        } 
    163162 
    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          
    190163        protected double getMeasuredPower(String query) throws FileNotFoundException, IOException{ 
    191164                ResourceBundle powBundle = getPowBundle(); 
  • DCWoRMS/branches/coolemall/src/test/article/recs/plugins/scheduling/RecsExclusivenessEnOptSP.java

    r734 r1197  
    2121import schedframe.resources.computing.ComputingResource; 
    2222import schedframe.resources.computing.Core; 
    23 import schedframe.resources.computing.Processor; 
    2423import schedframe.resources.computing.profiles.energy.power.StandardPowerStateName; 
    2524import schedframe.resources.units.ProcessingElements; 
     
    3635import schedframe.scheduling.queue.TaskQueueList; 
    3736import schedframe.scheduling.tasks.TaskInterface; 
    38 import test.article.recs.utils.AppType; 
    3937 
    4038public class RecsExclusivenessEnOptSP extends RecsSP { 
     
    157155        } 
    158156 
    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          
    185157        protected double getMeasuredPower(String query) throws FileNotFoundException, IOException{ 
    186158                ResourceBundle powBundle = getPowBundle(); 
  • DCWoRMS/branches/coolemall/src/test/article/recs/plugins/scheduling/RecsSP.java

    r708 r1197  
    88 
    99import schedframe.resources.computing.ComputingNode; 
     10import schedframe.resources.computing.Processor; 
    1011import schedframe.scheduling.tasks.TaskInterface; 
    1112import test.article.recs.utils.AppType; 
    1213import test.article.recs.utils.TaskToApp; 
    13 import dcworms.schedframe.scheduling.ExecTask; 
    1414import dcworms.schedframe.scheduling.Executable; 
    1515import example.localplugin.BaseLocalSchedulingPlugin; 
     
    3333        } 
    3434 
    35         private String getApplicationType(ExecTask task){        
     35        protected String getApplicationType(TaskInterface<?> task){      
    3636                AppType appType = taskToApp.getAppType(task); 
    3737                return appType.toString(); 
    3838        } 
    3939         
    40         private String getNodeCategory(ComputingNode node){ 
     40        protected String getNodeCategory(ComputingNode node){ 
    4141                return node.getCategory(); 
    4242        } 
    4343 
     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         
    4460        protected boolean getExecutiveness(String query) throws FileNotFoundException, IOException{ 
    4561                ResourceBundle execBundle = getExecBundle(); 
Note: See TracChangeset for help on using the changeset viewer.