private static void showPopulation(String value) throws IllegalAccessException { PopulationDAOFileSystem dao = new PopulationDAOFileSystem(); dao.setSettings(value); Population population = PopulationFactory.getDefaultPopulation(dao); showHeader(); showPrograms(population); }
private static String getProgramString(String path) throws IllegalAccessException { File file = new File(path); Program program = PopulationDAOFileSystem.getProgramFromFile(file); return ProgramPrinter.showProgram(program); }