Changeset 48 for java/ecj


Ignore:
Timestamp:
12/10/09 00:21:45 (15 years ago)
Author:
mszubert
Message:

Debug parameter added.

Location:
java/ecj
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • java/ecj/cecj/utils/Pair.java

    r44 r48  
    1717        @Override
    1818        public boolean equals(Object obj) {
    19                 if (!(obj instanceof Pair)) {
     19                if (!(obj instanceof Pair<?>)) {
    2020                        return false;
    2121                }
  • java/ecj/framsticks/FramsticksUtils.java

    r44 r48  
    3131        private static final String P_EXPERIMENT_DEFINITION = "expdef";
    3232        private static final String P_EXECUTABLE_COMMAND = "executable-cmd";
     33        private static final String P_DEBUG = "debug";
    3334
    3435        private String directoryPath;
     
    3839        private String experimentDefinition;
    3940        private String executableCommand;
     41        private boolean debug;
    4042
    4143        private static FramsticksUtils instance;
     
    7678                        state.output.fatal("No executable command specified", def.push(P_EXECUTABLE_COMMAND));
    7779                }
     80               
     81                debug = state.parameters.getBoolean(null, def.push(P_DEBUG), false);
    7882        }
    7983
     
    9397                }
    9498
     99                if (debug) {
     100                        System.out.println("Executing command : " + command);
     101                        System.out.println("Result : " + result);
     102                }
     103               
    95104                return result;
    96105        }
  • java/ecj/framsticks/framsticks.params

    r44 r48  
    3232pop.subpop.0            = ec.Subpopulation
    3333
    34 pop.subpop.0.size               = 20
     34pop.subpop.0.size               = 15
    3535pop.subpop.0.duplicate-retries  = 0
    3636pop.subpop.0.species            = framsticks.FramsticksSpecies
     
    5353breed.elite.0 = 2
    5454
     55framsticks.debug = true
    5556framsticks.directory-path = C:/Framsticks/
    5657framsticks.scripts-output = C:/Framsticks/scripts_output/genosEval.txt
Note: See TracChangeset for help on using the changeset viewer.