20package denoptim.programs.fitnessevaluator;
24import org.openscience.cdk.interfaces.IAtomContainer;
26import denoptim.exception.DENOPTIMException;
27import denoptim.fitness.FitnessParameters;
28import denoptim.fragspace.FragmentSpace;
29import denoptim.fragspace.FragmentSpaceParameters;
30import denoptim.graph.Candidate;
31import denoptim.graph.DGraph;
32import denoptim.molecularmodeling.ThreeDimTreeBuilder;
33import denoptim.programs.RunTimeParameters.ParametersType;
34import denoptim.task.FitnessTask;
61 DGraph molGraph, IAtomContainer iac,
62 String
workDir, String outFileName)
73 this.workDir =
new File(
workDir);
74 this.frSettings = settings;
115 }
catch (Throwable t) {
128 errMsg =
"Exception while running fitness provider";
130 ex.printStackTrace();
Settings defining the calculation of fitness.
Class defining a space of building blocks.
void addFusedRingsToFragmentLibrary(DGraph graph)
Extracts a system of one or more fused rings and adds them to the fragment space if not already prese...
Parameters defining the fragment space.
FragmentSpace getFragmentSpace()
A candidate is the combination of a denoptim graph with molecular representation and may include also...
Container for the list of vertices and the edges that connect them.
DGraph clone()
Returns almost "deep-copy" of this graph.
void replaceUnusedRCVsWithCapps(FragmentSpace fragSpace)
Removes unused ring-closing vertices.
Tool to build build three-dimensional (3D) tree-like molecular structures from DGraph.
IAtomContainer convertGraphTo3DAtomContainer(DGraph graph)
Created a three-dimensional molecular representation from a given DGraph.
boolean containsParameters(ParametersType type)
RunTimeParameters getParameters(ParametersType type)
Logger getLogger()
Get the name of the program specific logger.
Randomizer getRandomizer()
Returns the current program-specific randomizer.
Parameters controlling execution of FitnessRunner.
boolean addTemplatesToLibraries
Flag controlling attempt to add templates to building block libraries.
Task that calls the fitness provider.
FragmentSpace fragSpace
Fragment space in use.
FitnessEvaluationTask(FRParameters settings, DGraph molGraph, IAtomContainer iac, String workDir, String outFileName)
FRParameters frSettings
Collection of settings controlling the execution of the task.
Task that assesses the fitness of a given graph.
DGraph dGraph
The graph representation of the entity to evaluate.
void runFitnessProvider()
This method runs the actual evaluation of the fitness, whether that is run internally (i....
FitnessParameters fitnessSettings
Settings for the calculation of the fitness.
Candidate result
The data structure holding the results of this task.
String fitProvOutFile
The file where we store the final output from the fitness provider.
IAtomContainer fitProvMol
The chemical representation of the entity to evaluate.
File workDir
The file system location where we want to be placed when doing the work.
boolean completed
Flag about completion.
String errMsg
Error message produced by any subtask.
boolean hasException
Flag about exception.
Throwable thrownExc
Exception thrown.
Identifier of the type of parameters.
FS_PARAMS
Parameters pertaining the definition of the fragment space.
FIT_PARAMS
Parameters pertaining the calculation of fitness (i.e., the fitness provider).