1 | /*
|
---|
2 | * FragmentationAutomationAction.def
|
---|
3 | *
|
---|
4 | * Created on: May 18, 2012
|
---|
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 <string>
|
---|
11 | #include <vector>
|
---|
12 |
|
---|
13 | #include "Parameters/Validators/DummyValidator.hpp"
|
---|
14 | #include "Parameters/Validators/Ops_Validator.hpp"
|
---|
15 | #include "Parameters/Validators/STLVectorValidator.hpp"
|
---|
16 | #include "Parameters/Validators/Specific/ParserFileValidator.hpp"
|
---|
17 | #include "Parameters/Validators/Specific/FilePresentValidator.hpp"
|
---|
18 |
|
---|
19 | // i.e. there is an integer with variable name Z that can be found in
|
---|
20 | // ValueStorage by the token "Z" -> first column: int, Z, "Z"
|
---|
21 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
|
---|
22 | #define paramtypes (std::vector< boost::filesystem::path >)(std::string)(std::string)(std::string)(boost::filesystem::path)
|
---|
23 | #define paramtokens ("fragment-jobs")("fragment-path")("server-address")("server-port")("fragment-executable")
|
---|
24 | #define paramdescriptions ("vector of fragment files")("prefix of each fragment file")("hostname of server")("controller port of server")("executable to launch on clients")
|
---|
25 | #define paramdefaults (NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(PARAM_DEFAULT("127.0.0.1"))(PARAM_DEFAULT("1026"))(NOPARAM_DEFAULT)
|
---|
26 | #define paramreferences (jobfiles)(path)(host)(port)(executable)
|
---|
27 | #define paramvalids \
|
---|
28 | (STLVectorValidator< std::vector< boost::filesystem::path > >(ParserFileValidator() && FilePresentValidator())) \
|
---|
29 | (DummyValidator< std::string >()) \
|
---|
30 | (DummyValidator< std::string >()) \
|
---|
31 | (DummyValidator< std::string >()) \
|
---|
32 | (DummyValidator< boost::filesystem::path >())
|
---|
33 |
|
---|
34 | #undef statetypes
|
---|
35 | #undef statereferences
|
---|
36 |
|
---|
37 | // some defines for all the names, you may use ACTION, STATE and PARAMS
|
---|
38 | #define CATEGORY Fragmentation
|
---|
39 | #define MENUNAME "fragmentation"
|
---|
40 | #define MENUPOSITION 3
|
---|
41 | #define ACTIONNAME FragmentationAutomation
|
---|
42 | #define TOKEN "fragment-automation"
|
---|
43 |
|
---|
44 |
|
---|
45 | // finally the information stored in the ActionTrait specialization
|
---|
46 | #define DESCRIPTION "calculates each fragment by using a server with a client pool"
|
---|
47 | #undef SHORTFORM
|
---|