Ignore:
Timestamp:
08/28/13 13:24:11 (12 years ago)
Author:
wojtekp
Message:
 
Location:
DCWoRMS/branches/coolemall/src/test/article/recs/utils
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/test/article/recs/utils/TaskToApp.java

    r1173 r1197  
    55import java.util.Random; 
    66import java.util.TreeMap; 
     7 
     8import dcworms.schedframe.scheduling.Executable; 
    79 
    810import schedframe.scheduling.tasks.TaskInterface; 
     
    2426         
    2527        public AppType getAppType(TaskInterface<?> task){ 
     28 
    2629                AppType appType = null; 
    2730                if(mapping.get(task.getJobId())!= null){ 
    2831                        appType = mapping.get(task.getJobId()); 
     32                        Executable exec = (Executable) task; 
     33                        exec.getDescription().getExecution().getExecutable().getApplication().setName(appType.toString()); 
    2934                }else{ 
    3035                        appType = randomAppType(); 
    3136                        mapping.put(task.getJobId(), appType); 
    32                 }return appType; 
     37                } 
     38                return appType; 
    3339        } 
    3440         
     
    3642                AppType appType = null; 
    3743                int n = rand.nextInt(100); 
    38                 if(n < ABINIT) { 
     44                if(n < ABINIT){ 
    3945                        appType = AppType.abinit; 
    4046                }else if(n < C_RAY){ 
     
    4248                }else if(n < TAR){ 
    4349                        appType = AppType.tar; 
    44                 } else if (n < LIN_3GB){ 
     50                }else if(n < LIN_3GB){ 
    4551                        appType = AppType.lin_3gb; 
    46                 } else if (n < LIN_TINY){ 
     52                }else if(n < LIN_TINY){ 
    4753                        appType = AppType.lin_tiny; 
    48                 } else if (n < FFT){ 
     54                }else if(n < FFT){ 
    4955                        appType = AppType.fft; 
    5056                }  
     
    6268        } 
    6369         
    64          
    6570        private double randomAppLoad(){ 
    6671                double appLoad = 0; 
Note: See TracChangeset for help on using the changeset viewer.