2 #include "PingPongTask.hpp"
4 #include <HostNotFoundException.hpp>
10 const double commSizeLat = 1;
11 const double commSizeBw = 100000000;
13 MSG_IMPLEMENT_DYNAMIC(Sender, Process)
15 int Sender::main(int argc, char** argv)
21 info(TEXT_("Host count : ") + TEXT_(hostCount));
23 Host* hostTable = new Host[hostCount];
25 double computeDuration = 0;
28 for(int pos = 0; pos < argc ; pos++)
32 hostTable[pos] = Host::getByName(argv[pos]);
34 catch(HostNotFoundException e)
36 error(TEXT_(e.toString()) + TEXT_(". Stopping Now!"));
41 for (int pos = 0; pos < hostCount; pos++)
45 info(TEXT_("Sender time : ") + TEXT_(time));
47 task = new PingPongTask("no name",computeDuration,commSizeLat);
50 hostTable[pos].put(0,task);