Exemplo n.º 1
0
 private void savePopulation() {
   String dirName = getSavedPopulationDirName();
   File dirFile = new File(dirName);
   if (!dirFile.exists() && !dirFile.mkdirs()) {
     Debug.d("Unable to create directory", dirName);
   } else {
     population.savePopulation(dirName);
   }
 }
Exemplo n.º 2
0
 private void initPopulation() {
   if (population.getSize() == 0 && !engineSettings.executionOnly)
     breeder.breedPopulation(population, timePointExecutor.getProgramInfos());
 }
Exemplo n.º 3
0
 private static void showPrograms(Population population) throws IllegalAccessException {
   for (ProgramInfo programInfo : population.getProgramInfoList()) {
     String info = getProgramInfoString(programInfo);
     System.out.println(info);
   }
 }