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

Private GIT Repository
Add algorithm bulk.
authorsq <sq@jupiter.univ-bejaia.dz>
Mon, 4 Apr 2011 21:42:57 +0000 (22:42 +0100)
committersq <sq@jupiter.univ-bejaia.dz>
Mon, 4 Apr 2011 21:42:57 +0000 (22:42 +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 f8d6eead23836c24d6106774ada5aa4bb137d2e2..78612a127b26b0c365ba13b540e60723e0fe2b1f 100644 (file)
@@ -11,6 +11,7 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(main);
 #include "deployment.h"
 #include "process.h"
 #include "loba_besteffort.h"
 #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"
 #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("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",
         NOL_INSERT("fairstrategy", "balance with fair strategy",
                    loba_fairstrategy);
         NOL_INSERT("makhoul", "balance with Makhoul's PhD algorithm",