- .def("load_platform", &Engine::load_platform)
- .def("load_deployment", &Engine::load_deployment)
- .def("run", &Engine::run)
- .def("register_function", [](Engine*, const char* name, std::function<void(std::vector<std::string>)> f) {
- simgrid::simix::register_function(
- name, [f](std::vector<std::string> args) -> simgrid::simix::ActorCode { return [args, f]() { f(args); }; });
- });
+ .def("load_platform", &Engine::load_platform, "Load a platform file describing the environment")
+ .def("load_deployment", &Engine::load_deployment, "Load a deployment file and launch the actors that it contains")
+ .def("run", &Engine::run, "Run the simulation")
+ .def("register_function", [](Engine*, std::string name, std::function<void(std::vector<std::string>)> f) {
+ simgrid::simix::register_function(name,
+ [f](std::vector<std::string> args) -> simgrid::simix::ActorCode {
+ return [args, f]() { f(args); };
+ });
+ }, "Registers the main function of an actor that will be launched from the deployment file");