.. autodoxymethod:: simgrid::s4u::Host::route_to(const Host *dest, std::vector< Link * > &links, double *latency)
.. autodoxymethod:: simgrid::s4u::Host::route_to(const Host *dest, std::vector< kernel::resource::LinkImpl * > &links, double *latency)
+# The fact that actors can return an int is a legacy behavior for MSG
+.. autodoxymethod:: simgrid::s4u::Engine::register_default(const kernel::actor::ActorCodeFactory &factory)
+.. autodoxymethod:: simgrid::s4u::Engine::register_default(int(*code)(int, char **))
+.. autodoxymethod:: simgrid::s4u::Engine::register_function(const std::string &name, const kernel::actor::ActorCodeFactory &factory)
+.. autodoxymethod:: simgrid::s4u::Engine::register_function(const std::string &name, int(*code)(int, char **))
+
# These could be hidden as private things, eg in s4u_Exec.cpp
.. autodoxymethod:: simgrid::s4u::ExecPar::get_remaining()
.. autodoxymethod:: simgrid::s4u::Engine::is_initialized()
.. autodoxymethod:: simgrid::s4u::Engine::shutdown()
.. autodoxymethod:: simgrid::s4u::Engine::set_config(const std::string &str)
+ .. autodoxymethod:: simgrid::s4u::Engine::set_config(const std::string &name, bool value)
+ .. autodoxymethod:: simgrid::s4u::Engine::set_config(const std::string &name, double value)
+ .. autodoxymethod:: simgrid::s4u::Engine::set_config(const std::string &name, int value)
+ .. autodoxymethod:: simgrid::s4u::Engine::set_config(const std::string &name, std::string value)
.. autodoxymethod:: simgrid::s4u::Engine::load_deployment(const std::string &deploy)
.. autodoxymethod:: simgrid::s4u::Engine::load_platform(const std::string &platf)
.. autodoxymethod:: simgrid::s4u::Engine::register_actor(const std::string &name)
.. autodoxymethod:: simgrid::s4u::Engine::register_actor(const std::string &name, F code)
- .. autodoxymethod:: simgrid::s4u::Engine::register_default(int(*code)(int, char **))
- .. autodoxymethod:: simgrid::s4u::Engine::register_function(const std::string &name, int(*code)(int, char **))
+ .. autodoxymethod:: simgrid::s4u::Engine::register_default(void(*code)(int, char **))
.. autodoxymethod:: simgrid::s4u::Engine::register_function(const std::string &name, void(*code)(std::vector< std::string >))
+ .. autodoxymethod:: simgrid::s4u::Engine::register_function(const std::string &name, void(*code)(int, char **))
.. group-tab:: Python
* e->set_config("host/model:ptask_L07");
*/
void set_config(const std::string& str);
+ void set_config(const std::string& name, int value);
+ void set_config(const std::string& name, bool value);
+ void set_config(const std::string& name, double value);
+ void set_config(const std::string& name, std::string value);
/** Callback fired when the platform is created (ie, the xml file parsed),
* right before the actual simulation starts. */
{
config::set_parse(str);
}
+void Engine::set_config(const std::string& name, int value)
+{
+ config::set_value(name.c_str(), value);
+}
+void Engine::set_config(const std::string& name, double value)
+{
+ config::set_value(name.c_str(), value);
+}
+void Engine::set_config(const std::string& name, bool value)
+{
+ config::set_value(name.c_str(), value);
+}
+void Engine::set_config(const std::string& name, std::string value)
+{
+ config::set_value(name.c_str(), value);
+}
+
} // namespace s4u
} // namespace simgrid