From: Aberrahmane Sider Date: Mon, 18 Apr 2011 16:51:03 +0000 (+0100) Subject: Merge branch 'master' of ssh://info.iut-bm.univ-fcomte.fr/loba X-Git-Tag: v0.1~69 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/3747a1927b03ebc8f22c0772f83a857a0bf3b811?hp=0e7e808f6ba14f57185b1f0720b64bde7152667d Merge branch 'master' of ssh://info.iut-bm.univ-fcomte.fr/loba --- 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 3602fbf..9b1344a 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",