changa  3.5
 All Classes Files Functions Variables Typedefs Enumerations Friends Macros Groups Pages
HierarchOrbLB.h
1 
5 #ifndef HIERARCH_ORBLB_H
6 #define HIERARCH_ORBLB_H
7 
8 #include "HierarchOrbLB.decl.h"
9 #include "HybridBaseLB.h"
10 
11 #include "CentralLB.h"
12 
13 class HierarchOrbLB : public CBase_HierarchOrbLB
14 {
15 public:
16  HierarchOrbLB(const CkLBOptions &);
17  HierarchOrbLB(CkMigrateMessage *m): CBase_HierarchOrbLB(m) {init();}
18  ~HierarchOrbLB();
19 
20 protected:
21  CentralLB *orblb;
22 
23  void init();
24  virtual bool QueryBalanceNow(int step) {
25  if(step == 0) return false;
26  return true;
27  };
28  virtual bool
29  QueryMigrateStep(int) { return true; };
30  virtual void work(LDStats* stats);
31  virtual CLBStatsMsg* AssembleStats();
32 
33 private:
34  CProxy_HierarchOrbLB thisProxy;
35  void refine(LDStats* stats);
36 };
37 
38 #endif /* HIERARCH_ORBLB_H */
Definition: HierarchOrbLB.h:13