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/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(); 
Note: See TracChangeset for help on using the changeset viewer.