source: src/Actions/FragmentationAction/ParseFragmentJobsAction.def@ ac9dc8

Action_Thermostats Add_AtomRandomPerturbation Add_RotateAroundBondAction Add_SelectAtomByNameAction Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_StructOpt_integration_tests AutomationFragmentation_failures Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator Docu_Python_wait EmpiricalPotential_contain_HomologyGraph_documentation Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph Fix_ChronosMutex Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion GeometryObjects Gui_displays_atomic_force_velocity IndependentFragmentGrids_IntegrationTest JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks RotateToPrincipalAxisSystem_UndoRedo StoppableMakroAction TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps Ubuntu_1604_changes
Last change on this file since ac9dc8 was bae7bc, checked in by Frederik Heber <heber@…>, 12 years ago

Outsourced parsing of fragment files into ParseFragmentJobsAction from FragmentationAutomationAction.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/*
2 * ParseFragmentJobsAction.def
3 *
4 * Created on: Mar 04, 2013
5 * Author: heber
6 */
7
8// all includes and forward declarations necessary for non-integral types below
9#include <boost/filesystem/path.hpp>
10#include <vector>
11
12#include "Parameters/Validators/RangeValidator.hpp"
13#include "Parameters/Validators/Ops_Validator.hpp"
14#include "Parameters/Validators/STLVectorValidator.hpp"
15#include "Parameters/Validators/Specific/ParserFileValidator.hpp"
16#include "Parameters/Validators/Specific/FilePresentValidator.hpp"
17
18// i.e. there is an integer with variable name Z that can be found in
19// ValueStorage by the token "Z" -> first column: int, Z, "Z"
20// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
21#define paramtypes (std::vector< boost::filesystem::path >)(boost::filesystem::path)(unsigned int)
22#define paramtokens ("fragment-jobs")("fragment-path")("grid-level")
23#define paramdescriptions ("vector of fragment files")("prefix of each fragment file")("resolution of multigrid")
24#define paramdefaults (NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(PARAM_DEFAULT(5))
25#define paramreferences (jobfiles)(path)(level)
26#define paramvalids \
27(STLVectorValidator< std::vector< boost::filesystem::path > >(ParserFileValidator() && FilePresentValidator())) \
28(FilePresentValidator()) \
29(RangeValidator< unsigned int >(1, 10))
30
31#undef statetypes
32#undef statereferences
33
34// some defines for all the names, you may use ACTION, STATE and PARAMS
35#define CATEGORY Fragmentation
36#define MENUNAME "fragmentation"
37#define MENUPOSITION 5
38#define ACTIONNAME ParseFragmentJobs
39#define TOKEN "parse-fragment-jobs"
40
41
42// finally the information stored in the ActionTrait specialization
43#define DESCRIPTION "store all selected atoms as a single fragment with dangling bonds satured by hydrogen"
44#undef SHORTFORM
Note: See TracBrowser for help on using the repository browser.