19package denoptim.programs.fitnessevaluator;
22import java.lang.reflect.Field;
23import java.util.logging.Level;
25import denoptim.exception.DENOPTIMException;
26import denoptim.files.FileFormat;
27import denoptim.files.FileUtils;
28import denoptim.logging.StaticLogger;
29import denoptim.programs.RunTimeParameters;
48 private File
outFile =
new File(
"output.sdf");
99 switch (key.toUpperCase())
113 case "EXTRACTTEMPLATES":
123 msg =
"Unable to understand value " + key +
"'" + value +
"'";
128 msg =
"Keyword " + key +
" is not a known "
129 +
"related keyword for FitnessRunner. Check input files.";
146 msg =
"Directory '" +
workDir +
"' not found. Please specify an "
147 +
"existing directory.";
153 msg =
"File with input data not found. Check " +
inpFile;
159 msg =
"File meant for output ("
161 +
")already exists and we do not overwrite.";
180 +
"the current run are located in " +
workDir);
193 StringBuilder sb =
new StringBuilder(1024);
195 for (Field f : this.getClass().getDeclaredFields())
199 sb.append(f.getName()).append(
" = ").append(
200 f.get(
this)).append(
NL);
205 +
" parameters. Cause: " + t);
211 sb.append(otherCollector.getPrintedList());
213 return sb.toString();
static boolean checkExists(String fileName)
static void addToRecentFiles(String fileName, FileFormat ff)
Appends an entry to the list of recent files.
Logger class for DENOPTIM.
static final Logger appLogger
Collection of parameters controlling the behavior of the software.
Map< ParametersType, RunTimeParameters > otherParameters
Collection of other parameters by type.
String paramTypeName()
Returns a string defining the type the parameters collected here.
void checkOtherParameters()
Checks any of the parameter collections contained in this instance.
String workDir
Working directory.
final String NL
New line character.
void processOtherParameters()
Processes any of the parameter collections contained in this instance.
int verbosity
Verbosity level for logger.
Parameters controlling execution of FitnessRunner.
File outFile
File where the results of the fitness evaluation will be printed.
void interpretKeyword(String key, String value)
Processes a keyword/value pair and assign the related parameters.
boolean addTemplatesToLibraries
Flag controlling attempt to add templates to building block libraries.
File inpFile
File with input for fitness provider.
void checkParameters()
Evaluate consistency of input parameters.
void processParameters()
Processes all parameters and initialize related objects.
FRParameters()
Constructor.
String getPrintedList()
Returns the list of parameters in a string with newline characters as delimiters.
long getWallTime()
Returns the maximum number of seconds to wait for the fitness provider to deliver a result.
int walltime
The maximum number of seconds we wait for the fitness provider to return a result.
Identifier of the type of parameters.
FR_PARAMS
Parameters controlling a stand-alone fitness evaluation run.