\r
#include <Simulation.hpp>\r
\r
+#include <Application.hpp>\r
+#include <Environment.hpp>\r
+\r
+#include <MsgException.hpp>\r
+#include <FileNotFoundException.hpp>\r
+\r
+#include <Msg.hpp>\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
try\r
{\r
app.deploy(argv[2]);\r
+ }\r
catch(FileNotFoundException e)\r
{\r
info(e.toString());\r
//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
}\r
catch(MsgException e)\r
{\r
- info(e.toString())\r
+ info(e.toString());\r
return 1;\r
}\r
\r