19package denoptim.programs.denovo;
22import java.io.IOException;
23import java.nio.file.Paths;
24import java.util.concurrent.ExecutorService;
25import java.util.concurrent.Executors;
26import java.util.concurrent.Future;
27import java.util.concurrent.TimeUnit;
29import denoptim.ga.EvolutionaryAlgorithm;
30import denoptim.ga.ExternalCmdsListener;
31import denoptim.task.ProgramTask;
93 executor = Executors.newSingleThreadExecutor();
113 super.handleThrowable();
129 executor.awaitTermination(2, TimeUnit.SECONDS);
132 executor.awaitTermination(1, TimeUnit.SECONDS);
133 }
catch (InterruptedException e) {
135 }
catch (IOException e) {
DENOPTIM's evolutionary algorithm.
Service that watches the interface folder (i.e., see GAParameters#interfaceDir) for instructions comi...
Logger startProgramSpecificLogger(String loggerIdentifier)
Starts a logger with the given name.
void readParameterFile(String infile)
Read the parameter TXT file line by line and interpret its content.
Logger getLogger()
Get the name of the program specific logger.
void printParameters()
Print all parameters.
Parameters for genetic algorithm.
void checkParameters()
Evaluate consistency of input parameters.
void processParameters()
Processes currently loaded fields.
void setWorkingDirectory(String pathName)
Programs that runs de novo design by a genetic algorithm.
Future<?> futureWatchers
Pending tasks of the service listening for commands.
EvolutionaryAlgorithm ea
The implementation of the evolutionary algorithm we run here.
ExecutorService executor
Executor of the service that listens for commands.
void handleThrowable()
Method to handle any Throwable originated from the runProgram() method.
ExternalCmdsListener ecl
The service that listens for commands from outside the JVM.
GARunner(File configFile, File workDir)
Creates and configures the program task.
void stopExternalCmdListener()
Stop the service that waits for instructions from the outside world.
Task structure for any of the main programs in the denoptim project, such as genetic algorithm and co...
String loggerIdentifier
Identifier of this program's logger.
void stopLogger()
Stops the program-specific logger and releases the lock file on the logfile.
File configFilePathName
File containing configuration parameters for the program task.
File workDir
The file system location where we want to be placed when doing the work.