-#include "DreamMaster.hpp"\r
-#include "LazyGuy.hpp"\r
-#include <Host.hpp>\r
-#include <HostNotFoundException.hpp>\r
-#include <Msg.hpp>\r
-\r
-#include <Msg.hpp>\r
-\r
-\r
-MSG_IMPLEMENT_DYNAMIC(DreamMaster, Process);\r
-\r
-int DreamMaster::main(int argc, char** argv)\r
-{\r
- \r
- info("Hello");\r
- \r
- info("Let's create a lazy guy.");\r
- \r
-\r
- LazyGuy* lazy;\r
-\r
- try\r
- {\r
- Host currentHost = Host::currentHost();\r
- \r
- info(TEXT_("Current host name : ") + TEXT_(currentHost.getName()));\r
- \r
- lazy = new LazyGuy(currentHost,"LazyGuy");\r
- \r
- info("Let's wait a little bit...");\r
- \r
- Process::sleep(10.0);\r
- \r
- info("Let's wake the lazy guy up! >:) ");\r
- \r
- lazy->resume();\r
- \r
- \r
- }\r
- catch(HostNotFoundException e)\r
- {\r
- error(TEXT_(e.toString()) + TEXT_(". Stopping Now!"));\r
- exit(1);\r
- }\r
- \r
- //lazy->migrate(currentHost);\r
- \r
- info("OK, goodbye now.");\r
-\r
- delete this;\r
-\r
- return 0;\r
- \r
-}
\ No newline at end of file
+#include "DreamMaster.hpp"
+#include "LazyGuy.hpp"
+#include <MsgHost.hpp>
+#include <HostNotFoundException.hpp>
+#include <Msg.hpp>
+
+#include <Msg.hpp>
+
+
+MSG_IMPLEMENT_DYNAMIC(DreamMaster, Process)
+
+int DreamMaster::main(int argc, char** argv)
+{
+
+ info("Hello");
+
+ info("Let's create a lazy guy.");
+
+
+ LazyGuy* lazy;
+
+ try
+ {
+ Host currentHost = Host::currentHost();
+
+ info(TEXT_("Current host name : ") + TEXT_(currentHost.getName()));
+
+ lazy = new LazyGuy(currentHost,"LazyGuy");
+
+ info("Let's wait a little bit...");
+
+ Process::sleep(10.0);
+
+ info("Let's wake the lazy guy up! >:) ");
+
+ lazy->resume();
+
+
+ }
+ catch(HostNotFoundException e)
+ {
+ error(TEXT_(e.toString()) + TEXT_(". Stopping Now!"));
+ exit(1);
+ }
+
+ //lazy->migrate(currentHost);
+
+ info("OK, goodbye now.");
+
+ delete this;
+
+ return 0;
+
+}