From: sq Date: Mon, 4 Apr 2011 21:42:57 +0000 (+0100) Subject: Add algorithm bulk. X-Git-Tag: v0.1~70 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/986d39a220570cc275f7eb248f70380fef3826b3?ds=sidebyside;hp=--cc Add algorithm bulk. --- 986d39a220570cc275f7eb248f70380fef3826b3 diff --git a/loba_bulk.cpp b/loba_bulk.cpp new file mode 100644 index 0000000..9af50cf --- /dev/null +++ b/loba_bulk.cpp @@ -0,0 +1,15 @@ +#include + +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 index 0000000..68c41dc --- /dev/null +++ b/loba_bulk.h @@ -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: diff --git a/options.cpp b/options.cpp index f8d6eea..78612a1 100644 --- a/options.cpp +++ b/options.cpp @@ -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",