6 #include "named_object_list.h"
8 // These classes may use include options.h, so make forward declarations
9 class deployment_generator;
12 // Global parameters, shared by all the processes
16 extern const double load_ratio_threshold;
19 extern std::string program_name;
20 extern int help_requested;
21 extern bool version_requested;
23 // Simulation parameters
25 extern bool exit_request;
27 // Platform and deployment
28 extern std::string platform_file;
29 extern std::string deployment_file;
31 // Automatic deployment
34 extern std::string topology;
35 extern unsigned nhosts;
39 // Load balancing algorithm
40 extern std::string loba_algo;
41 extern bool bookkeeping;
42 extern double min_transfer_amount;
43 extern double max_transfer_amount;
44 extern double min_lb_iter_duration;
46 // Application parameters
47 extern cost_func comp_cost;
48 extern cost_func comm_cost;
49 extern double min_comp_iter_duration;
50 extern unsigned comp_iter_delay;
51 extern double comp_time_delay;
53 // Parameters for the end of the simulation
54 extern unsigned lb_maxiter;
55 extern unsigned comp_maxiter;
56 extern double time_limit;
57 extern bool exit_on_close;
59 // Named parameters lists
60 extern struct loba_algorithms_type:
61 public named_object_list2<process, int, char** > {
62 loba_algorithms_type();
65 extern struct topologies_type:
66 public named_object_list<deployment_generator> {
71 bool parse_args(int* argc, char* argv[]);