SimGrid  3.14.159
Versatile Simulation of Distributed Systems
smx_environment.cpp File Reference
#include "smx_private.h"
#include <xbt/ex.hpp>
#include "xbt/sysdep.h"
#include "xbt/log.h"
#include "xbt/xbt_os_time.h"
#include "xbt/config.h"

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (simix_environment, simix, "Logging specific to SIMIX (environment)")
 
void SIMIX_create_environment (const char *file)
 A platform constructor. More...
 
void SIMIX_post_create_environment ()
 

Function Documentation

§ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( simix_environment  ,
simix  ,
"Logging specific to SIMIX (environment)"   
)

§ SIMIX_create_environment()

void SIMIX_create_environment ( const char *  file)

A platform constructor.

Creates a new platform, including hosts, links and the routing_table.

Parameters
filea filename of a xml description of a platform. This file follows this DTD :
\include surfxml.dtd

Here is a small example of such a platform

\include small_platform.xml

§ SIMIX_post_create_environment()

void SIMIX_post_create_environment ( )