SimGrid  3.16
Versatile Simulation of Distributed Systems
smx_deployment.cpp File Reference
#include <string>
#include <vector>
#include "simgrid/s4u/Host.hpp"
#include "smx_private.h"
#include "src/surf/xml/platf_private.hpp"
#include <xbt/ex.hpp>

Namespaces

 simgrid
 Alltoall Bruck.
 
 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::ActorCodeFactorySIMIX_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
 

Function Documentation

◆ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( simix_deployment  ,
simix  ,
"Logging specific to SIMIX (deployment)"   
)

◆ SIMIX_init_application()

void SIMIX_init_application ( )

◆ SIMIX_launch_application()

void SIMIX_launch_application ( const char *  file)

An application deployer.

Creates the process described in file.

Parameters
filea 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

◆ toActorCodeFactory()

static simgrid::simix::ActorCodeFactory toActorCodeFactory ( xbt_main_func_t  code)
static

◆ SIMIX_function_register()

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.

Parameters
namethe reference name of the function.
codethe function

◆ SIMIX_function_register_default()

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.

Parameters
codethe function

◆ SIMIX_get_actor_code_factory()

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.

Parameters
namethe reference name of the function.
Returns
The smx_actor_t or nullptr.

◆ SIMIX_process_set_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.

Variable Documentation

◆ surf_parse_lineno

int surf_parse_lineno