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

Private GIT Repository
Added Least Load Neighbors and another bulk algorithm
[loba.git] / deployment.h
index 3e71df584efa6abaa0db0c9186f0262e385e42bb..b3fa43a6b29b14faccb3ddf65ad82fd1fbcd31d4 100644 (file)
@@ -17,10 +17,13 @@ public:
     void set_link(int host1, int host2);
 
     virtual void generate() = 0;
     void set_link(int host1, int host2);
 
     virtual void generate() = 0;
+    void distribute_load();
     void deploy();
 
 private:
     struct host_parameters {
     void deploy();
 
 private:
     struct host_parameters {
+        host_parameters(): load(0.0) { }
+
         double load;
         std::vector<int> neighbors;
     };
         double load;
         std::vector<int> neighbors;
     };