-#ifndef PINGPONG_TASK_HPP\r
-#define PINGPONG_TASK_HPP\r
-\r
-#include <Task.hpp>\r
-using namespace SimGrid::Msg;\r
-\r
-class PingPongTask : public Task\r
-{\r
- MSG_DECLARE_DYNAMIC(PingPongTask);\r
-\r
-public:\r
-\r
- PingPongTask()\r
- :Task(NULL, 0.0, 0.0){}\r
- \r
- // Default constructor.\r
- PingPongTask(const char* name, double computeDuration, double messageSize)\r
- throw (InvalidArgumentException, NullPointerException)\r
- :Task(name, computeDuration, messageSize){}\r
- \r
- // Destructor\r
- virtual ~PingPongTask() {}\r
- \r
- void setTime(double timeVal)\r
- {\r
- this->timeVal = timeVal;\r
- }\r
- \r
- double getTime() \r
- {\r
- return timeVal;\r
- }\r
- \r
-private :\r
- \r
- double timeVal;\r
-};\r
-\r
-\r
-#endif // !PINGPONG_TASK_HPP
\ No newline at end of file
+#ifndef PINGPONG_TASK_HPP
+#define PINGPONG_TASK_HPP
+
+#include <MsgTask.hpp>
+using namespace SimGrid::Msg;
+
+class PingPongTask : public Task
+{
+ MSG_DECLARE_DYNAMIC(PingPongTask);
+
+public:
+
+ PingPongTask()
+ :Task(NULL, 0.0, 0.0){}
+
+ // Default constructor.
+ PingPongTask(const char* name, double computeDuration, double messageSize)
+ throw (InvalidArgumentException, NullPointerException)
+ :Task(name, computeDuration, messageSize){}
+
+ // Destructor
+ virtual ~PingPongTask()
+ throw(MsgException){}
+
+ void setTime(double timeVal)
+ {
+ this->timeVal = timeVal;
+ }
+
+ double getTime()
+ {
+ return timeVal;
+ }
+
+private :
+
+ double timeVal;
+};
+
+
+#endif // !PINGPONG_TASK_HPP