|
SimGrid
3.14.159
Versatile Simulation of Distributed Systems
|
#include <string>#include <vector>#include "simgrid/s4u/host.hpp"#include "smx_private.h"#include "src/surf/xml/platf_private.hpp"#include "xbt/dict.h"#include "xbt/log.h"#include "xbt/sysdep.h"#include <xbt/ex.hpp>Namespaces | |
| simgrid | |
| Host datatype from SIMIX POV. | |
| simgrid::simix | |
Functions | |
| XBT_LOG_NEW_DEFAULT_SUBCATEGORY (simix_deployment, simix, "Logging specific to SIMIX (deployment)") | |
| void | SIMIX_init_application () |
| void | SIMIX_launch_application (const char *file) |
| An application deployer. More... | |
| static simgrid::simix::ActorCodeFactory | toActorCodeFactory (xbt_main_func_t code) |
| void | SIMIX_function_register (const char *name, xbt_main_func_t code) |
| Registers a xbt_main_func_t code in a global table. More... | |
| void | SIMIX_function_register_default (xbt_main_func_t code) |
| Registers a xbt_main_func_t code as default value. More... | |
| simgrid::simix::ActorCodeFactory & | SIMIX_get_actor_code_factory (const char *name) |
| Gets a smx_actor_t code from the global table. More... | |
| void | SIMIX_process_set_function (const char *process_host, const char *process_function, xbt_dynar_t arguments, double process_start_time, double process_kill_time) |
| Bypass the parser, get arguments, and set function to each process. More... | |
| void | simgrid::simix::registerFunction (const char *name, ActorCodeFactory factory) |
Variables | |
| int | surf_parse_lineno |
| XBT_LOG_NEW_DEFAULT_SUBCATEGORY | ( | simix_deployment | , |
| simix | , | ||
| "Logging specific to SIMIX (deployment)" | |||
| ) |
| void SIMIX_init_application | ( | ) |
| void SIMIX_launch_application | ( | const char * | file | ) |
An application deployer.
Creates the process described in file.
| file | a filename of a xml description of the application. This file follows this DTD : \include surfxml.dtd |
Here is a small example of such a platform
\include small_deployment.xml
|
static |
| void SIMIX_function_register | ( | const char * | name, |
| xbt_main_func_t | code | ||
| ) |
Registers a xbt_main_func_t code in a global table.
Registers a code function in a global table. This table is then used by SIMIX_launch_application.
| name | the reference name of the function. |
| code | the function |
| void SIMIX_function_register_default | ( | xbt_main_func_t | code | ) |
Registers a xbt_main_func_t code as default value.
Registers a code function as being the default value. This function will get used by SIMIX_launch_application() when there is no registered function of the requested name in.
| code | the function |
| simgrid::simix::ActorCodeFactory& SIMIX_get_actor_code_factory | ( | const char * | name | ) |
Gets a smx_actor_t code from the global table.
Gets a code function from the global table. Returns nullptr if there are no function registered with the name. This table is then used by SIMIX_launch_application.
| name | the reference name of the function. |
| void SIMIX_process_set_function | ( | const char * | process_host, |
| const char * | process_function, | ||
| xbt_dynar_t | arguments, | ||
| double | process_start_time, | ||
| double | process_kill_time | ||
| ) |
Bypass the parser, get arguments, and set function to each process.
| int surf_parse_lineno |