20package denoptim.programs.moldecularmodelbuilder;
23import java.util.ArrayList;
25import java.util.logging.Level;
27import org.openscience.cdk.interfaces.IAtomContainer;
29import denoptim.constants.DENOPTIMConstants;
30import denoptim.graph.Candidate;
31import denoptim.graph.DGraph;
32import denoptim.integration.tinker.TinkerException;
33import denoptim.io.DenoptimIO;
34import denoptim.molecularmodeling.MultiMolecularModelBuilder;
35import denoptim.task.ProgramTask;
80 String mname = candidate.
getName();
87 boolean normalTerm =
false;
90 for (
int i = 0; i<nmols.size(); i++)
94 String propVIDs = nmols.get(i).getProperty(
96 Object propMolErr = nmols.get(i).getProperty(
98 nmols.get(i).setProperties(properties);
99 nmols.get(i).setProperty(
101 if (propMolErr !=
null)
104 propMolErr.toString());
111 String msg =
"ERROR! Tinker failed on task '" + te.taskName
117 mmbParams.
getLogger().log(Level.SEVERE, msg);
121 de.printStackTrace(System.err);
125 mmbParams.
getLogger().log(Level.INFO,
"MolecularModelBuilder "
126 +
"terminated normally!");
General set of constants used in DENOPTIM.
static final String ATMPROPVERTEXID
String tag of Atom property used to store the unique ID of the Vertex corresponding to the molecular ...
static final String MOLERRORTAG
SDF tag containing errors during execution of molecule specific tasks.
A candidate is the combination of a denoptim graph with molecular representation and may include also...
IAtomContainer getChemicalRepresentation()
Returns the atom container representing this candidate.
Container for the list of vertices and the edges that connect them.
Exceptions resulting from a failure of Tinker.
String solution
Proposed solution to the failure, or empty string.
Utility methods for input/output.
static ArrayList< Candidate > readCandidates(File file)
Reads SDF files that represent one or more tested candidates.
static void writeSDFFile(String fileName, IAtomContainer mol)
Writes IAtomContainer to SDF file.
ArrayList< IAtomContainer > buildMulti3DStructure()
Given the graph representation of the molecular constitution, along with the 3D coordinates of the fr...
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.
void setWorkDirectory(String pathname)
Gets the pathname to the working directory.
Parameters for the conformer generator (3D builder).
void processParameters()
Processes all parameters and initialize related objects.
String getOutputSDFFile()
void checkParameters()
Check all parameters.
Builder of molecular models.
MolecularModelBuilder(File configFile, File workDir)
Creates and configures the program task.
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.
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.
final String NL
System-dependent line separator (newline)