]> AND Private Git Repository - loba.git/blobdiff - deployment.h
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Add statistics about idle duration.
[loba.git] / deployment.h
index 2009b36c8a8d28e58f6823fc5a6bbe4378a8599b..b3fa43a6b29b14faccb3ddf65ad82fd1fbcd31d4 100644 (file)
@@ -3,8 +3,10 @@
 
 #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();
@@ -15,10 +17,13 @@ public:
     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;
     };
@@ -37,7 +42,7 @@ DEPLOYMENT(hcube);
 DEPLOYMENT(line);
 DEPLOYMENT(ring);
 DEPLOYMENT(star);
-// DEPLOYMENT(torus);
+DEPLOYMENT(torus);
 
 #undef DEPLOYMENT