/* * StretchBondAction.def * * Created on: Sep 26, 2012 * Author: heber */ // all includes and forward declarations necessary for non-integral types below #include "Parameters/Validators/RangeValidator.hpp" // i.e. there is an integer with variable name Z that can be found in // ValueStorage by the token "Z" -> first column: int, Z, "Z" // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value #define paramtypes (double) #define paramtokens ("stretch-bond") #define paramdescriptions ("new bond distance") #define paramdefaults (NOPARAM_DEFAULT) #define paramreferences (bonddistance) #define paramvalids \ (RangeValidator< double >(0., 10.)) #define statetypes (const double)(const Plane)(const molecule *) #define statereferences (shift)(bondplane)(mol) // some defines for all the names, you may use ACTION, STATE and PARAMS #define CATEGORY Molecule #define MENUNAME "molecule" #define MENUPOSITION 10 #define ACTIONNAME StretchBond #define TOKEN "stretch-bond" // finally the information stored in the ActionTrait specialization #define DESCRIPTION "stretch a specific given bond while keeping the rest of the molecule invariant " #undef SHORTFORM