/*
 * BondAddAction.def
 *
 *  Created on: Nov 14, 2012
 *      Author: heber
 */

// all includes and forward declarations necessary for non-integral types below
#include "types.hpp"
#include <vector>
#include <utility>

typedef std::vector<std::pair<atomId_t,atomId_t> > bondPairIds_t;
typedef std::vector<const molecule*> molecules_t;

#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 (const element *)(BoxVector) TODO: use a validator
#define paramtypes (int)
#define paramtokens ("bond-degree")
#define paramdescriptions ("bond degree of each the added bonds") 
#define paramreferences (degree)
#define paramdefaults (PARAM_DEFAULT(1))
#define paramvalids \
(RangeValidator<int>(1,10))

#define statetypes (bondPairIds_t)(molecules_t)(molecule *)
#define statereferences (bondPairIds)(molecules)(add_to_mol)

// some defines for all the names, you may use ACTION, STATE and PARAMS
#define CATEGORY Bond
#define MENUNAME "bond"
#define MENUPOSITION 1
#define ACTIONNAME Add
#define TOKEN "add-bonds"

// finally the information stored in the ActionTrait specialization
#define DESCRIPTION "add bonds in between any number of selected atoms"
#undef SHORTFORM
