Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
not needed now
[simgrid.git] / src / cxx / Simulation.cxx
index b1fd89e..0697760 100644 (file)
  /* Simulation member functions implementation.\r
   */  \r
   \r
+\r
+#include <Application.hpp>\r
+#include <Environment.hpp>\r
+\r
+#include <Msg.hpp>\r
+\r
 #include <Simulation.hpp>\r
 \r
+\r
+#include <msg/msg.h> \r
+\r
 namespace SimGrid\r
 {\r
        namespace Msg\r
        {\r
-               \r
-               \r
                int Simulation::execute(int argc, char** argv)\r
                {\r
                        if(argc < 3) \r
@@ -55,6 +62,7 @@ namespace SimGrid
                        try\r
                        {\r
                                app.deploy(argv[2]);\r
+                       }\r
                        catch(FileNotFoundException e)\r
                        {\r
                                info(e.toString());\r
@@ -65,7 +73,7 @@ namespace SimGrid
                        //try to run the simulation the given application on the given environment\r
                        try\r
                        {\r
-                               this->run();\r
+                               run();\r
                        }\r
                        catch(MsgException e)\r
                        {\r
@@ -81,7 +89,7 @@ namespace SimGrid
                        }\r
                        catch(MsgException e)\r
                        {\r
-                               info(e.toString())\r
+                               info(e.toString());\r
                                return 1;\r
                        }\r
                        \r
@@ -96,3 +104,5 @@ namespace SimGrid
                }\r
        } // namespace Msg\r
 } // namespace SimGrid\r
+\r
+\r