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