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

Private GIT Repository
Merge branch 'master' of ssh://info.iut-bm.univ-fcomte.fr/loba
authorAberrahmane Sider <ar.sider@univ-bejaia.dz>
Mon, 18 Apr 2011 16:51:03 +0000 (17:51 +0100)
committerAberrahmane Sider <ar.sider@univ-bejaia.dz>
Mon, 18 Apr 2011 16:51:03 +0000 (17:51 +0100)
loba_bulk.cpp [new file with mode: 0644]
loba_bulk.h [new file with mode: 0644]
options.cpp

diff --git a/loba_bulk.cpp b/loba_bulk.cpp
new file mode 100644 (file)
index 0000000..9af50cf
--- /dev/null
@@ -0,0 +1,15 @@
+#include <xbt/log.h>
+
+XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(loba);
+
+#include "loba_bulk.h"
+
+void loba_bulk::load_balance()
+{
+    // write code here...
+    xbt_die("Load-balancing algorithm \"bulk\" not implemented!");
+}
+
+// Local variables:
+// mode: c++
+// End:
diff --git a/loba_bulk.h b/loba_bulk.h
new file mode 100644 (file)
index 0000000..68c41dc
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef LOBA_BULK_H
+#define LOBA_BULK_H
+
+#include "process.h"
+
+class loba_bulk: public process {
+public:
+    loba_bulk(int argc, char* argv[]): process(argc, argv) { }
+    ~loba_bulk()                                           { }
+
+private:
+    void load_balance();
+};
+
+#endif //!LOBA_BULK_H
+
+// Local variables:
+// mode: c++
+// End:
index 3602fbffdccd562df03a7ff8d89337382dadb62e..9b1344aade28af3378c0f5cd6e6d615b41589f8b 100644 (file)
@@ -11,6 +11,7 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(main);
 #include "deployment.h"
 #include "process.h"
 #include "loba_besteffort.h"
+#include "loba_bulk.h"
 #include "loba_fairstrategy.h"
 #include "loba_makhoul.h"
 #include "loba_makhoul2.h"
@@ -79,6 +80,8 @@ namespace opt {
     {
         NOL_INSERT("besteffort", "balance with best effort strategy",
                    loba_besteffort);
+        NOL_INSERT("bulk", "describe your algorithm here...",
+                   loba_bulk);
         NOL_INSERT("fairstrategy", "balance with fair strategy",
                    loba_fairstrategy);
         NOL_INSERT("makhoul", "balance with Makhoul's PhD algorithm",