
00001 00005 00006 #ifndef _TEAMLB_H_ 00007 #define _TEAMLB_H_ 00008 00009 #include "CentralLB.h" 00010 #include "TeamLB.decl.h" 00011 00012 void CreateTeamLB(); 00013 BaseLB * AllocateTeamLB(); 00014 00015 class TeamLB : public CentralLB { 00016 public: 00017 TeamLB(const CkLBOptions &); 00018 TeamLB(CkMigrateMessage *m):CentralLB(m) { lbname = "TeamLB"; } 00019 00020 void work(LDStats* stats); 00021 void pup(PUP::er &p) { CentralLB::pup(p); } 00022 00023 private: 00024 int teamSize; 00025 int numberTeams; 00026 00027 CmiBool QueryBalanceNow(int step) { return CmiTrue; } 00028 }; 00029 00030 #endif /* _TEAMLB_H_ */ 00031
1.5.5