source: src/Actions/GlobalListOfActions.hpp@ fb08cc

Candidate_v1.7.0 stable
Last change on this file since fb08cc was 55c494, checked in by Frederik Heber <frederik.heber@…>, 4 years ago

Added GeneratePotentialsAction.

  • this generates all potential combinations for a given fragment.
  • exposed PotentialFactory::getDefaultInstance() for constant instance to be able to gather more information about the potential such as the binding model.
  • DOCU: Added documentation.
  • TEST: Added regression test case.
  • Property mode set to 100644
File size: 5.9 KB
RevLine 
[83e90c]1/*
2 * GlobalListOfActions.hpp
3 *
4 * Created on: Sep 21, 2011
5 * Author: heber
6 */
7
8#ifndef GLOBALLISTOFACTIONS_HPP_
9#define GLOBALLISTOFACTIONS_HPP_
10
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
[004d5c]16#include <boost/preprocessor/seq/push_back.hpp>
[975b83]17#include <boost/preprocessor/seq/remove.hpp>
[004d5c]18
19// this is global list of actions valid for all cases
[442495]20// PLEASE adhere to the alphabetical ordering of the list of Actions
21// NOTE that Redo must remain at the front due to technical reasons
[004d5c]22#define GLOBALLISTOFACTIONS_initial \
23 (Redo) \
[f4b626a]24 (AnalysisAverageMoleculeForce) \
[442495]25 (AnalysisDipoleAngularCorrelation) \
26 (AnalysisDipoleCorrelation) \
27 (AnalysisMolecularVolume) \
28 (AnalysisPairCorrelation) \
29 (AnalysisPointCorrelation) \
30 (AnalysisPrincipalAxisSystem) \
31 (AnalysisSurfaceCorrelation) \
32 (AtomAdd) \
[5fa1e86]33 (AtomBondify) \
[442495]34 (AtomChangeElement) \
[bbf6dc]35 (AtomMirror) \
[310445]36 (AtomRandomPerturbation) \
[442495]37 (AtomRemove) \
38 (AtomRotateAroundOriginByAngle) \
[2fcef3]39 (AtomSaturate) \
[442495]40 (AtomSaveSelectedAtoms) \
41 (AtomTranslate) \
[c7fe90]42 (AtomTranslateToOrigin) \
[442495]43 (BondAdd) \
44 (BondRemove) \
[2d1280]45 (BondSetDegree) \
[f3db60]46 (CommandDryRun) \
[442495]47 (CommandElementDb) \
48 (CommandBondLengthTable) \
49 (CommandFastParsing) \
50 (CommandHelp) \
51 (CommandHelpRedistribute) \
[f3db60]52 (CommandNoDryRun) \
[442495]53 (CommandSetRandomNumbersEngine) \
54 (CommandSetRandomNumbersDistribution) \
55 (CommandStoreSession) \
[0ec9f5]56 (CommandUndoMark) \
[442495]57 (CommandVerbose) \
58 (CommandVersion) \
59 (CommandWarranty) \
60 (FillRegularGrid) \
61 (FillSurface) \
[aa55d0]62 (FillSuspendInMolecule) \
[6801f4]63 (FillVolume) \
[442495]64 (FragmentationAnalyseFragmentationResults) \
65 (FragmentationClearFragmentationResults) \
[addb51]66 (FragmentationClearFragmentationState) \
[999eaf]67 (FragmentationEvaluateStability) \
[442495]68 (FragmentationFragmentation) \
69 (FragmentationFragmentationAutomation) \
70 (FragmentationMolecularDynamics) \
71 (FragmentationParseFragmentJobs) \
[73a5f7]72 (FragmentationParseFragmentResults) \
73 (FragmentationSaveFragmentResults) \
[442495]74 (FragmentationStoreSaturatedFragment) \
[e5f61ba]75 (FragmentationStructuralOptimization) \
[987145]76 (GeometryDistanceToVector) \
77 (GeometryInputToVector) \
78 (GeometryPlaneToVector) \
79 (GeometryPositionToVector) \
[836972]80 (GeometryRemove) \
[f5ea10]81 (GraphChemicalSpaceEvaluator) \
[22b786]82 (GraphUpdateMolecules) \
[343c5a]83 (GraphCorrectBondDegree) \
[004d5c]84 (GraphCreateAdjacency) \
85 (GraphDepthFirstSearch) \
[560cbf]86 (GraphDestroyAdjacency) \
[5061d9]87 (GraphPrintSelectedAtomsAsGraphString) \
[22b786]88 (GraphSubgraphDissection) \
[442495]89 (MoleculeBondFile) \
90 (MoleculeChangeName) \
91 (MoleculeChangeBondAngle) \
[004d5c]92 (MoleculeCopy) \
[1a48d2]93 (MoleculeForceAnnealing) \
[442495]94 (MoleculeLinearInterpolationofTrajectories) \
95 (MoleculeLoad) \
[867473]96 (MoleculeRemove) \
[788dce]97 (MoleculeRotateAroundBond) \
[004d5c]98 (MoleculeRotateAroundSelfByAngle) \
[442495]99 (MoleculeRotateToPrincipalAxisSystem) \
100 (MoleculeSaveAdjacency) \
[004d5c]101 (MoleculeSaveBonds) \
[442495]102 (MoleculeSaveSelectedMolecules) \
[d40189]103 (MoleculeSaveEnergies) \
[3a51bd]104 (MoleculeStretchBond) \
[066442]105 (MoleculeTranslate) \
[442495]106 (MoleculeVerletIntegration) \
[50d49d]107 (PotentialFitPartialCharges) \
[55c494]108 (PotentialGeneratePotentials) \
[78202b]109 (PotentialParseAtomFragments) \
[442495]110 (PotentialParseHomologies) \
[2082637]111 (PotentialParseParticleParameters) \
[f1eabd]112 (PotentialParsePotentials) \
[78202b]113 (PotentialSaveAtomFragments) \
[442495]114 (PotentialSaveHomologies) \
[2082637]115 (PotentialSaveParticleParameters) \
[0ea063]116 (PotentialSavePotentials) \
[004d5c]117 (ParserSaveSelectedAtomsAsExtTypes) \
118 (ParserSetParserParameters) \
119 (ParserSetOutputFormats) \
[442495]120 (ParserSetTremoloAtomdata) \
[004d5c]121 (Undo) \
[442495]122 (SelectionAllAtoms) \
123 (SelectionAllAtomsInsideVolume) \
124 (SelectionAllAtomsOfMolecule) \
[004d5c]125 (SelectionAllMolecules) \
[442495]126 (SelectionAllShapes) \
[4de4f6]127 (SelectionAtomBondNeighbors) \
[442495]128 (SelectionAtomByElement) \
129 (SelectionAtomById) \
[3f6aac]130 (SelectionAtomByName) \
[442495]131 (SelectionAtomByOrder) \
[0ad4781]132 (SelectionAtomByRandom) \
[442495]133 (SelectionClearAllAtoms) \
[004d5c]134 (SelectionClearAllMolecules) \
[442495]135 (SelectionInvertAtoms) \
[ebc499]136 (SelectionInvertMolecules) \
[442495]137 (SelectionMoleculeOfAtom) \
[004d5c]138 (SelectionMoleculeByFormula) \
[442495]139 (SelectionMoleculeById) \
140 (SelectionMoleculeByName) \
141 (SelectionMoleculeByOrder) \
[004d5c]142 (SelectionNotAllAtoms) \
[eff536]143 (SelectionNotAllAtomsInsideVolume) \
[004d5c]144 (SelectionNotAllAtomsOfMolecule) \
[442495]145 (SelectionNotAllMolecules) \
[a27dcb]146 (SelectionNotAllShapes) \
[442495]147 (SelectionNotAtomByElement) \
[3f6aac]148 (SelectionNotAtomById) \
149 (SelectionNotAtomByName) \
[442495]150 (SelectionNotAtomByOrder) \
151 (SelectionNotMoleculeOfAtom) \
152 (SelectionNotMoleculeByFormula) \
153 (SelectionNotMoleculeById) \
154 (SelectionNotMoleculeByName) \
155 (SelectionNotMoleculeByOrder) \
[2c004d]156 (SelectionNotShapeByName) \
[3213f2]157 (SelectionPopAtoms) \
158 (SelectionPushAtoms) \
[a84e8d]159 (SelectionPopMolecules) \
160 (SelectionPushMolecules) \
[442495]161 (SelectionShapeByName) \
[d475a6]162 (ShapeCombineShapes) \
[f20da5]163 (ShapeCreateShape) \
[0b5057]164 (ShapeRemoveShape) \
[a2bbb1]165 (ShapeRotateShape) \
[29ea65]166 (ShapeStretchShape) \
[442495]167 (ShapeTranslateShape) \
168 (TesselationConvexEnvelope) \
169 (TesselationNonConvexEnvelope) \
170 (WorldAddEmptyBoundary) \
171 (WorldBoundInBox) \
172 (WorldCenterInBox) \
173 (WorldCenterOnEdge) \
174 (WorldChangeBox) \
175 (WorldInput) \
176 (WorldOutput) \
177 (WorldOutputAs) \
178 (WorldRepeatBox) \
179 (WorldScaleBox) \
180 (WorldSetBoundaryConditions) \
181 (WorldSetDefaultName) \
[72e40d0]182 (WorldSetWorldTime) \
183 (WorldStepWorldTime)
[004d5c]184
[786d28]185// extend list of actions in case levmar is available
[48d20d]186#ifdef HAVE_LEVMAR
187#define GLOBALLISTOFACTIONS_LEVMAR \
188 BOOST_PP_SEQ_PUSH_BACK( \
[98d166]189 BOOST_PP_SEQ_PUSH_BACK( \
190 GLOBALLISTOFACTIONS_initial, \
191 PotentialFitPotential \
192 ), \
193 PotentialFitCompoundPotential \
[48d20d]194 )
195#else
196#define GLOBALLISTOFACTIONS_LEVMAR \
[786d28]197 GLOBALLISTOFACTIONS_initial
[48d20d]198#endif /* HAVE_LEVMAR */
199
200// define final list
[0d4168]201#ifdef HAVE_PYTHON
202#define GLOBALLISTOFACTIONS_PYTHON \
203 BOOST_PP_SEQ_PUSH_BACK( \
204 GLOBALLISTOFACTIONS_LEVMAR, \
205 CommandLoadSession \
206 )
207#else
208#define GLOBALLISTOFACTIONS_PYTHON \
209 GLOBALLISTOFACTIONS_LEVMAR
210#endif
211
212#define GLOBALLISTOFACTIONS GLOBALLISTOFACTIONS_PYTHON
213
214// define python list
215// skips CommandLoadSession as this causes dangerous infinite loops
216#define GLOBALLISTOFPYTHONACTIONS \
217 GLOBALLISTOFACTIONS_LEVMAR
[48d20d]218
[83e90c]219#endif /* GLOBALLISTOFACTIONS_HPP_ */
220
Note: See TracBrowser for help on using the repository browser.