00001 00005 00006 #ifndef _TREEMATCHLB_H_ 00007 #define _TREEMATCHLB_H_ 00008 00009 #include "CentralLB.h" 00010 #include "TreeMatchLB.decl.h" 00011 00012 void CreateTreeMatchLB(); 00013 00014 class TreeMatchLB : public CBase_TreeMatchLB { 00015 public: 00016 TreeMatchLB(const CkLBOptions &); 00017 TreeMatchLB(CkMigrateMessage *m):CBase_TreeMatchLB(m) {} 00018 void work(BaseLB::LDStats* stats); 00019 private: 00020 class ProcLoadGreater; 00021 class ObjLoadGreater; 00022 00023 bool QueryBalanceNow(int step); 00024 }; 00025 00026 #endif /* _TREEMATCHLB_H_ */ 00027