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