/** * Depending on the settings for the experiment and the current iteration, this method returns a * path to where the settings files should be saved. * * @param appendIterationIfMoreThanOne Whether to append the iteration number if more than one * iteration is being executed * @return Path to where the settings files should be saved * @throws Exception */ public static String GetOutputSettingsDir(boolean appendIterationIfMoreThanOne) throws Exception { String dirPath = Settings.OUTPUT_DIR + "Settings/"; if (Singletons.Config.GetNumIterations() > 1 && appendIterationIfMoreThanOne) dirPath += "Iteration" + Singletons.Iteration + "/"; return FileUtilities.CreateDirectoryIfNotExists(dirPath); }
/** * Depending on the settings for the experiment and the current iteration, this method returns a * path to where the results files should be saved. * * @param subDirectoryPath Sub directory under results * @param appendIterationIfMoreThanOne Whether to append the iteration number if more than one * iteration is being executed * @return Path to where the results files should be saved * @throws Exception */ public static String GetOutputResultsDir( String subDirectoryPath, boolean appendIterationIfMoreThanOne) throws Exception { String dir = Settings.OUTPUT_DIR + "Results/" + subDirectoryPath; if (Singletons.Config.GetNumIterations() > 1 && appendIterationIfMoreThanOne) dir += "Iteration" + Singletons.Iteration + "/"; return dir; }