Changeset 1200 for DCWoRMS/branches/coolemall/src/test/article2/recs
- Timestamp:
- 08/28/13 15:20:32 (12 years ago)
- Location:
- DCWoRMS/branches/coolemall/src/test/article2/recs
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/test/article2/recs/plugins/scheduling/exp2/RecsRandomSP.java
r826 r1200 3 3 import gridsim.dcworms.DCWormsTags; 4 4 5 import java.io.FileNotFoundException;6 import java.io.IOException;7 5 import java.util.ArrayList; 8 6 import java.util.HashMap; 9 7 import java.util.List; 10 8 import java.util.Map; 11 import java.util.MissingResourceException;12 9 import java.util.Random; 13 10 -
DCWoRMS/branches/coolemall/src/test/article2/recs/utils/TaskToApp.java
r826 r1200 4 4 import java.util.Map; 5 5 import java.util.Random; 6 7 import dcworms.schedframe.scheduling.Executable; 6 8 7 9 import schedframe.scheduling.tasks.TaskInterface; … … 24 26 if(mappingType.get(task.getJobId())!= null){ 25 27 appType = mappingType.get(task.getJobId()); 28 Executable exec = (Executable) task; 29 exec.getDescription().getExecution().getExecutable().getApplication().setName(appType.toString()); 26 30 }else{ 27 31 appType = randomAppType(); 28 32 mappingType.put(task.getJobId(), appType); 29 }return appType; 33 } 34 return appType; 30 35 } 31 36 … … 38 43 }else if(n < PYBENCH){ 39 44 appType = AppType.pybench; 40 } 45 }else if (n < UNPACK_LINUX){ 41 46 appType = AppType.unpack_linux; 42 47 } … … 54 59 } 55 60 56 57 61 private double randomAppLoad(){ 58 62 double appLoad = 0;
Note: See TracChangeset
for help on using the changeset viewer.