Ignore:
Timestamp:
08/28/13 13:24:11 (12 years ago)
Author:
wojtekp
Message:
 
File:
1 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(); 
Note: See TracChangeset for help on using the changeset viewer.