
00001 /* #ifdef filippo */ 00002 00003 /* /\***************** DISCLAMER ********************* */ 00004 /* * This class is old and not compatible. Deprecated */ 00005 /* **************************************************\/ */ 00006 00007 /* #ifndef KDIRECT_MULTICAST_STRATEGY */ 00008 /* #define KDIRECT_MULTICAST_STRATEGY */ 00009 00010 /* #include "DirectMulticastStrategy.h" */ 00011 00012 /* class KDirectHashObject{ */ 00013 /* public: */ 00014 /* CkVec<CkArrayIndex> indices; */ 00015 /* int npes; */ 00016 /* int *pelist; */ 00017 /* }; */ 00018 00019 00020 /* class KDirectMulticastStrategy: public DirectMultcastStrategy { */ 00021 /* protected: */ 00022 /* int kfactor; */ 00023 00024 /* //Initialize and cache information in a section id which can be */ 00025 /* //used the next time the section is multicast to. */ 00026 /* virtual void initSectionID(CkSectionID *sid); */ 00027 00028 /* //Common Initializer for group and array constructors */ 00029 /* //Every substrategy should implement its own */ 00030 /* void commonKDirectInit(); */ 00031 00032 /* //Create a new multicast message with the array section in it */ 00033 /* ComlibMulticastMsg * getNewMulticastMessage(CharmMessageHolder *cmsg); */ 00034 00035 /* public: */ 00036 00037 /* //Group constructor */ 00038 /* KDirectMulticastStrategy(int ndestpes = 0, int *destpelist = 0); */ 00039 00040 /* //Array constructor */ 00041 /* KDirectMulticastStrategy(CkArrayID aid); */ 00042 00043 /* KDirectMulticastStrategy(CkMigrateMessage *m): Strategy(m){} */ 00044 00045 /* // virtual void insertMessage(CharmMessageHolder *msg); */ 00046 /* virtual void doneInserting(); */ 00047 00048 /* //Called by the converse handler function */ 00049 /* virtual void handleMulticastMessage(void *msg); */ 00050 00051 /* //virtual void beginProcessing(int nelements); */ 00052 00053 /* void setKFactor(int k){ kfactor = k; } */ 00054 00055 /* virtual void pup(PUP::er &p); */ 00056 /* PUPable_decl(KDirectMulticastStrategy); */ 00057 /* }; */ 00058 00059 /* #endif */ 00060 00061 /* #endif */
1.5.5