19package denoptim.files;
21import java.util.Arrays;
22import java.util.HashSet;
25import denoptim.constants.DENOPTIMConstants;
26import denoptim.programs.RunTimeParameters.ParametersType;
38 GA_PARAM, FSE_PARAM, FR_PARAM, COMP_MAP, GO_PARAM,
CLG_PARAM, GE_PARAM,
44 private String extension =
"";
53 private Set<String> definingRegex =
new HashSet<String>();
60 private Set<String> negatingRegex =
new HashSet<String>();
67 private String endOfSampleRegex =
null;
69 private Boolean isFolder =
false;
72 GRAPHSDF.extension =
"sdf";
73 GRAPHSDF.definingRegex =
new HashSet<String>(Arrays.asList(
77 GRAPHSDF.negatingRegex =
new HashSet<String>(Arrays.asList(
83 GRAPHSDF.endOfSampleRegex =
"\\$\\$\\$\\$";
87 CANDIDATESDF.extension =
"sdf";
88 CANDIDATESDF.definingRegex =
new HashSet<String>(Arrays.asList(
94 CANDIDATESDF.endOfSampleRegex =
"\\$\\$\\$\\$";
99 GRAPHJSON.extension =
"json";
104 VRTXJSON.extension =
"json";
108 VRTXSDF.extension =
"sdf";
109 VRTXSDF.definingRegex =
new HashSet<String>(Arrays.asList(
111 VRTXSDF.negatingRegex =
new HashSet<String>(Arrays.asList(
117 VRTXSDF.endOfSampleRegex =
"\\$\\$\\$\\$";
121 MOLSDF.extension =
"sdf";
122 MOLSDF.negatingRegex =
new HashSet<String>(Arrays.asList(
129 MOLSDF.endOfSampleRegex =
"\\$\\$\\$\\$";
133 FSE_RUN.extension =
"";
134 FSE_RUN.isFolder =
true;
138 FRG_RUN.extension =
"";
139 FRG_RUN.isFolder =
true;
143 GA_RUN.extension =
"";
144 GA_RUN.isFolder =
true;
148 GA_PARAM.extension =
"";
149 GA_PARAM.definingRegex =
new HashSet<String>(Arrays.asList(
154 FSE_PARAM.extension =
"";
155 FSE_PARAM.definingRegex =
new HashSet<String>(Arrays.asList(
160 FRG_PARAM.extension =
"";
161 FRG_PARAM.definingRegex =
new HashSet<String>(Arrays.asList(
166 CUTRULE.extension =
"";
167 CUTRULE.definingRegex =
new HashSet<String>(Arrays.asList(
172 FR_PARAM.extension =
"";
173 FR_PARAM.definingRegex =
new HashSet<String>(Arrays.asList(
178 COMP_MAP.extension =
"";
179 COMP_MAP.definingRegex =
new HashSet<String>(Arrays.asList(
180 "^RCN .*",
"^RBO .*",
"^CAP .*"));
184 GO_PARAM.extension =
"";
185 GO_PARAM.definingRegex =
new HashSet<String>(Arrays.asList(
190 GE_PARAM.extension =
"";
191 GE_PARAM.definingRegex =
new HashSet<String>(Arrays.asList(
196 CLG_PARAM.extension =
"";
197 CLG_PARAM.definingRegex =
new HashSet<String>(Arrays.asList(
202 GI_PARAM.extension =
"";
203 GI_PARAM.definingRegex =
new HashSet<String>(Arrays.asList(
206 B3D_PARAM.extension =
"";
207 B3D_PARAM.definingRegex =
new HashSet<String>(Arrays.asList(
216 GRAPHTXT.extension =
"txt";
220 GENSUMMARY.extension =
"txt";
221 GENSUMMARY.definingRegex =
new HashSet<String>(Arrays.asList(
233 FR_PARAM, GO_PARAM, CLG_PARAM, GE_PARAM, GI_PARAM, COMP_MAP,
B3D_PARAM,
248 switch (extension.toUpperCase())
418 return endOfSampleRegex;
429 return definingRegex;
440 return negatingRegex;
General set of constants used in DENOPTIM.
static final String GRAPHTAG
SDF tag containing graph encoding.
static final String VERTEXJSONTAG
SDF tag containing vertex encoding in JSON format.
static final String APSTAG
SDF tag defining attachment points.
static final String GAGENSUMMARYHEADER
Header of text files collection generation details.
static final String UNIQUEIDTAG
SDF tag containing the unique identifier of a candidate.
static final String GRAPHJSONTAG
SDF tag containing graph encoding in JSON format.
static final String MOLERRORTAG
SDF tag containing errors during execution of molecule specific tasks.
static final String FITNESSTAG
SDF tag containing the fitness of a candidate.
Identifier of the type of parameters.
GO_PARAMS
Parameters controlling stand-alone run of genetic operators.
FR_PARAMS
Parameters controlling a stand-alone fitness evaluation run.
CEBL_PARAMS
Parameters pertaining the combinatorial exploration by layer.
ISO_PARAMS
Parameters controlling the stand-alone detection of graph isomorphism.
FRG_PARAMS
Parameters controlling the fragmenter.
MMB_PARAM
Parameters pertaining the construction of three-dimensional molecular models using the Tinker-based m...
GLH_PARAMS
Parameters controlling the stand-alone management of list of graphs.
GA_PARAMS
Parameters pertaining the genetic algorithm.
GE_PARAMS
Parameters controlling the stand-alone editing of graphs.