Ignore:
Timestamp:
12/20/12 17:25:19 (12 years ago)
Author:
wojtekp
Message:
 
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  
    22 
    33public enum AppType { 
     4        abinit, 
     5        c_ray, 
    46        tar, 
    57        lin_tiny, 
    68        lin_3gb, 
    7         lin_1gb, 
    89        fft; 
    910} 
  • DCWoRMS/trunk/src/test/article/recs/utils/TaskToApp.java

    r659 r710  
    99public class TaskToApp { 
    1010         
    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; 
    1516        private static int FFT = 100; 
    1617        private static Random rand = new Random(5); 
     
    3031                AppType appType = null; 
    3132                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){ 
    3338                        appType = AppType.tar; 
     39                } else if (n < LIN_3GB){ 
     40                        appType = AppType.lin_3gb; 
    3441                } else if (n < LIN_TINY){ 
    3542                        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; 
    4043                } else if (n < FFT){ 
    4144                        appType = AppType.fft; 
Note: See TracChangeset for help on using the changeset viewer.