*** empty log message ***
authorSameer Kumar <skumar2@uiuc.edu>
Sat, 22 May 2004 19:00:57 +0000 (19:00 +0000)
committerSameer Kumar <skumar2@uiuc.edu>
Sat, 22 May 2004 19:00:57 +0000 (19:00 +0000)
src/conv-com/dummyconversestrategy.C [new file with mode: 0644]
src/conv-com/dummyconversestrategy.h [new file with mode: 0644]

diff --git a/src/conv-com/dummyconversestrategy.C b/src/conv-com/dummyconversestrategy.C
new file mode 100644 (file)
index 0000000..58e5145
--- /dev/null
@@ -0,0 +1,18 @@
+
+#include "RouterStrategy.h"
+
+RouterStrategy::RouterStrategy() : Strategy(){
+}
+
+void RouterStrategy::insertMessage(MessageHolder *cmsg){
+    ComlibPrintf("Sending Directly\n");
+    char *msg = cmsg->getMessage();
+    CmiSyncSendAndFree(cmsg->dest_proc, cmsg->size, msg);
+    delete cmsg;
+}
+
+void RouterStrategy::doneInserting(){
+}
+
+void RouterStrategy::pup(PUP::er &p){}
+
diff --git a/src/conv-com/dummyconversestrategy.h b/src/conv-com/dummyconversestrategy.h
new file mode 100644 (file)
index 0000000..1e87909
--- /dev/null
@@ -0,0 +1,23 @@
+
+/* Class that calls Krishnan's routers from the new Comlib.
+   Developed to be called from Converse
+   Sameer Kumar 05/14/04
+*/
+   
+
+#ifndef ROUTER_STRATEGY
+#define ROUTER_STRATEGY
+#include "convcomlibmanager.h"
+
+class RouterStrategy : public Strategy {
+ public:
+    RouterStrategy();
+    RouterStrategy(CkMigrateMessage *m): Strategy(m){}
+
+    void insertMessage(MessageHolder *msg);
+    void doneInserting();
+
+    virtual void pup(PUP::er &p);
+    PUPable_decl(RouterStrategy);
+};
+#endif