Changeset 1197 for DCWoRMS/branches/coolemall/src/test/article/recs/utils
- Timestamp:
- 08/28/13 13:24:11 (12 years ago)
- 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 5 5 import java.util.Random; 6 6 import java.util.TreeMap; 7 8 import dcworms.schedframe.scheduling.Executable; 7 9 8 10 import schedframe.scheduling.tasks.TaskInterface; … … 24 26 25 27 public AppType getAppType(TaskInterface<?> task){ 28 26 29 AppType appType = null; 27 30 if(mapping.get(task.getJobId())!= null){ 28 31 appType = mapping.get(task.getJobId()); 32 Executable exec = (Executable) task; 33 exec.getDescription().getExecution().getExecutable().getApplication().setName(appType.toString()); 29 34 }else{ 30 35 appType = randomAppType(); 31 36 mapping.put(task.getJobId(), appType); 32 }return appType; 37 } 38 return appType; 33 39 } 34 40 … … 36 42 AppType appType = null; 37 43 int n = rand.nextInt(100); 38 if(n < ABINIT) 44 if(n < ABINIT){ 39 45 appType = AppType.abinit; 40 46 }else if(n < C_RAY){ … … 42 48 }else if(n < TAR){ 43 49 appType = AppType.tar; 44 } else if(n < LIN_3GB){50 }else if(n < LIN_3GB){ 45 51 appType = AppType.lin_3gb; 46 } else if(n < LIN_TINY){52 }else if(n < LIN_TINY){ 47 53 appType = AppType.lin_tiny; 48 } else if(n < FFT){54 }else if(n < FFT){ 49 55 appType = AppType.fft; 50 56 } … … 62 68 } 63 69 64 65 70 private double randomAppLoad(){ 66 71 double appLoad = 0;
Note: See TracChangeset
for help on using the changeset viewer.