1 #ifndef PINGPONG_TASK_HPP
2 #define PINGPONG_TASK_HPP
5 using namespace SimGrid::Msg;
7 class PingPongTask : public Task
9 MSG_DECLARE_DYNAMIC(PingPongTask);
14 :Task(NULL, 0.0, 0.0){}
16 // Default constructor.
17 PingPongTask(const char* name, double computeDuration, double messageSize)
18 throw (InvalidArgumentException, NullPointerException)
19 :Task(name, computeDuration, messageSize){}
22 virtual ~PingPongTask()
25 void setTime(double timeVal)
27 this->timeVal = timeVal;
41 #endif // !PINGPONG_TASK_HPP