Changeset 710 for DCWoRMS/trunk/src
- Timestamp:
- 12/20/12 17:25:19 (12 years ago)
- Location:
- DCWoRMS/trunk/src/test/article/recs/utils
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/trunk/src/test/article/recs/utils/AppType.java
r656 r710 2 2 3 3 public enum AppType { 4 abinit, 5 c_ray, 4 6 tar, 5 7 lin_tiny, 6 8 lin_3gb, 7 lin_1gb,8 9 fft; 9 10 } -
DCWoRMS/trunk/src/test/article/recs/utils/TaskToApp.java
r659 r710 9 9 public class TaskToApp { 10 10 11 private static int TAR = 20; 12 private static int LIN_TINY = 40; 13 private static int LIN_3GB = 60; 14 private static int LIN_1GB = 80; 11 private static int ABINIT = 20; 12 private static int C_RAY = 40; 13 private static int TAR = 60; 14 private static int LIN_3GB = 70; 15 private static int LIN_TINY = 80; 15 16 private static int FFT = 100; 16 17 private static Random rand = new Random(5); … … 30 31 AppType appType = null; 31 32 int n = rand.nextInt(100); 32 if(n < TAR){ 33 if(n < ABINIT) { 34 appType = AppType.abinit; 35 }else if(n < C_RAY){ 36 appType = AppType.c_ray; 37 }else if(n < TAR){ 33 38 appType = AppType.tar; 39 } else if (n < LIN_3GB){ 40 appType = AppType.lin_3gb; 34 41 } else if (n < LIN_TINY){ 35 42 appType = AppType.lin_tiny; 36 } else if (n < LIN_3GB){37 appType = AppType.lin_3gb;38 } else if (n < LIN_1GB){39 appType = AppType.lin_1gb;40 43 } else if (n < FFT){ 41 44 appType = AppType.fft;
Note: See TracChangeset
for help on using the changeset viewer.