--- /dev/null
+#include <xbt/log.h>
+
+XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(loba);
+
+#include "loba_pstar.h"
+
+void loba_pstar::load_balance()
+{
+ // write code here...
+ xbt_die("Load-balancing algorithm \"pstar\" not implemented!");
+}
+
+// Local variables:
+// mode: c++
+// End:
--- /dev/null
+#ifndef LOBA_PSTAR_H
+#define LOBA_PSTAR_H
+
+#include "process.h"
+
+class loba_pstar: public process {
+public:
+ loba_pstar(int argc, char* argv[]): process(argc, argv) { }
+ ~loba_pstar() { }
+
+private:
+ void load_balance();
+};
+
+#endif //!LOBA_PSTAR_H
+
+// Local variables:
+// mode: c++
+// End:
#include "loba_makhoul.h"
#include "loba_makhoul2.h"
#include "loba_makhoul3.h"
+#include "loba_pstar.h"
#include "loba_simple.h"
#include "misc.h"
loba_makhoul3);
NOL_INSERT("none", "no load-balancing (for testing only)",
process);
+ NOL_INSERT("pstar", "balance with pstar strategy",
+ loba_pstar);
NOL_INSERT("simple", "balance with least loaded neighbor",
loba_simple);
}