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
26 // Platform and deployment
27 extern std::string platform_file;
28 extern std::string deployment_file;
30 // Automatic deployment
33 extern std::string topology;
34 extern unsigned nhosts;
38 // Load balancing algorithm
39 extern std::string loba_algo;
40 extern bool bookkeeping;
41 extern double min_transfer_amount;
42 extern double max_transfer_amount;
43 extern double min_lb_iter_duration;
45 // Application parameters
46 extern cost_func comp_cost;
47 extern cost_func comm_cost;
48 extern double min_comp_iter_duration;
49 extern unsigned comp_iter_delay;
50 extern double comp_time_delay;
52 // Parameters for the end of the simulation
53 extern unsigned lb_maxiter;
54 extern unsigned comp_maxiter;
55 extern double time_limit;
56 extern bool exit_on_close;
58 // Named parameters lists
59 extern struct loba_algorithms_type:
60 public named_object_list2<process, int, char** > {
61 loba_algorithms_type();
64 extern struct topologies_type:
65 public named_object_list<deployment_generator> {
70 bool parse_args(int* argc, char* argv[]);