1 #include <Simulation.hpp>
\r
3 #include <Simulator.hpp>
\r
9 int Simulation::execute(int argc, char** argv)
\r
13 info("Usage: Msg platform_file deployment_file");
\r
17 // initialize the MSG simulator. Must be done before anything else (even logging).
\r
18 Simulator::init(argc, argv);
\r
20 // the environment to load
\r
21 Environment environment(argv[1]);
\r
22 // the application to deploy
\r
23 Application application(argv[2]);
\r
25 Simulation simulation;
\r
27 // load the environment
\r
30 // deploy the application
\r
31 application.deploy();
\r
33 // run the simulation
\r
34 simulation.run(environment, application);
\r
36 // finalize the simulator
\r
37 Simulator::finalize();
\r
40 } // namespace SimGrid
\r