6 // Deploy an application automatically, according to the global parameters
7 void MY_launch_application();
9 // Base class for deployment generators...
10 class deployment_generator {
12 deployment_generator();
14 size_t size() const { return hosts.size(); }
15 void set_load(int host, double load);
16 void set_neighbor(int host, int neighbor);
17 void set_link(int host1, int host2);
19 virtual void generate() = 0;
23 struct host_parameters {
24 host_parameters(): load(0.0) { }
27 std::vector<int> neighbors;
30 std::vector<host_parameters> hosts;
33 #define DEPLOYMENT(name) \
34 class deployment_ ## name: public deployment_generator { \
35 public: void generate(); \
48 #endif // !DEPLOYMENT_H