#include <vector>
+// Deploy an application automatically, according to the global parameters
void MY_launch_application();
+// Base class for deployment generators...
class deployment_generator {
public:
deployment_generator();
void set_link(int host1, int host2);
virtual void generate() = 0;
+ void distribute_load();
void deploy();
private:
struct host_parameters {
+ host_parameters(): load(0.0) { }
+
double load;
std::vector<int> neighbors;
};
public: void generate(); \
}
+DEPLOYMENT(btree);
+DEPLOYMENT(clique);
+DEPLOYMENT(hcube);
DEPLOYMENT(line);
DEPLOYMENT(ring);
DEPLOYMENT(star);
-DEPLOYMENT(clique);
-DEPLOYMENT(btree);
-// DEPLOYMENT(torus);
-DEPLOYMENT(hcube);
+DEPLOYMENT(torus);
#undef DEPLOYMENT