SimGrid  3.14.159
Versatile Simulation of Distributed Systems
sg_platf.cpp File Reference

Namespaces

 simgrid
 Host datatype from SIMIX POV.
 
 simgrid::surf
 

Functions

 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY (surf_parse)
 
static simgrid::kernel::routing::NetZoneImplrouting_get_current ()
 
void sg_platf_init ()
 Module management function: creates all internal data structures. More...
 
void sg_platf_exit ()
 Module management function: frees all internal data structures. More...
 
void sg_platf_new_host (sg_platf_host_cbarg_t args)
 Add an host to the current AS. More...
 
void sg_platf_new_router (sg_platf_router_cbarg_t router)
 Add a "router" to the network element list. More...
 
void sg_platf_new_link (sg_platf_link_cbarg_t link)
 
void sg_platf_new_cluster (sg_platf_cluster_cbarg_t cluster)
 
void routing_cluster_add_backbone (simgrid::surf::Link *bb)
 
void sg_platf_new_cabinet (sg_platf_cabinet_cbarg_t cabinet)
 
void sg_platf_new_storage (sg_platf_storage_cbarg_t storage)
 
void sg_platf_new_storage_type (sg_platf_storage_type_cbarg_t storage_type)
 
static void mount_free (void *p)
 
void sg_platf_new_mount (sg_platf_mount_cbarg_t mount)
 
void sg_platf_new_route (sg_platf_route_cbarg_t route)
 
void sg_platf_new_bypassRoute (sg_platf_route_cbarg_t bypassRoute)
 
void sg_platf_new_process (sg_platf_process_cbarg_t process)
 
void sg_platf_new_peer (sg_platf_peer_cbarg_t peer)
 
void sg_platf_begin ()
 
void sg_platf_end ()
 
static void surf_config_models_setup ()
 
simgrid::s4u::NetZonesg_platf_new_AS_begin (sg_platf_AS_cbarg_t AS)
 Add an AS to the platform. More...
 
void sg_platf_new_AS_seal ()
 Specify that the description of the current AS is finished. More...
 
void sg_platf_new_hostlink (sg_platf_host_link_cbarg_t hostlink)
 Add a link connecting an host to the rest of its AS (which must be cluster or vivaldi) More...
 
void sg_platf_new_trace (sg_platf_trace_cbarg_t trace)
 

Variables

xbt_dynar_t mount_list = nullptr
 
simgrid::xbt::signal< void(sg_platf_cluster_cbarg_t)> simgrid::surf::on_cluster
 
simgrid::xbt::signal< void(void)> simgrid::surf::on_postparse
 
static int surf_parse_models_setup_already_called = 0
 
static simgrid::kernel::routing::NetZoneImplcurrent_routing = nullptr
 The current AS in the parsing. More...
 

Function Documentation

◆ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY()

XBT_LOG_EXTERNAL_DEFAULT_CATEGORY ( surf_parse  )

◆ routing_get_current()

static simgrid::kernel::routing::NetZoneImpl* routing_get_current ( )
static

◆ sg_platf_init()

void sg_platf_init ( )

Module management function: creates all internal data structures.

◆ sg_platf_exit()

void sg_platf_exit ( )

Module management function: frees all internal data structures.

◆ sg_platf_new_host()

void sg_platf_new_host ( sg_platf_host_cbarg_t  args)

Add an host to the current AS.

◆ sg_platf_new_router()

void sg_platf_new_router ( sg_platf_router_cbarg_t  router)

Add a "router" to the network element list.

◆ sg_platf_new_link()

void sg_platf_new_link ( sg_platf_link_cbarg_t  link)

◆ sg_platf_new_cluster()

void sg_platf_new_cluster ( sg_platf_cluster_cbarg_t  cluster)

◆ routing_cluster_add_backbone()

void routing_cluster_add_backbone ( simgrid::surf::Link bb)

◆ sg_platf_new_cabinet()

void sg_platf_new_cabinet ( sg_platf_cabinet_cbarg_t  cabinet)

◆ sg_platf_new_storage()

void sg_platf_new_storage ( sg_platf_storage_cbarg_t  storage)

◆ sg_platf_new_storage_type()

void sg_platf_new_storage_type ( sg_platf_storage_type_cbarg_t  storage_type)

◆ mount_free()

static void mount_free ( void p)
static

◆ sg_platf_new_mount()

void sg_platf_new_mount ( sg_platf_mount_cbarg_t  mount)

◆ sg_platf_new_route()

void sg_platf_new_route ( sg_platf_route_cbarg_t  route)

◆ sg_platf_new_bypassRoute()

void sg_platf_new_bypassRoute ( sg_platf_route_cbarg_t  bypassRoute)

◆ sg_platf_new_process()

void sg_platf_new_process ( sg_platf_process_cbarg_t  process)

◆ sg_platf_new_peer()

void sg_platf_new_peer ( sg_platf_peer_cbarg_t  peer)

◆ sg_platf_begin()

void sg_platf_begin ( )

◆ sg_platf_end()

void sg_platf_end ( )

◆ surf_config_models_setup()

static void surf_config_models_setup ( )
static

◆ sg_platf_new_AS_begin()

simgrid::s4u::NetZone* sg_platf_new_AS_begin ( sg_platf_AS_cbarg_t  AS)

Add an AS to the platform.

Add a new autonomous system to the platform. Any elements (such as host, router or sub-AS) added after this call and before the corresponding call to sg_platf_new_AS_seal() will be added to this AS.

Once this function was called, the configuration concerning the used models cannot be changed anymore.

Parameters
ASthe parameters defining the AS to build.

◆ sg_platf_new_AS_seal()

void sg_platf_new_AS_seal ( )

Specify that the description of the current AS is finished.

Once you've declared all the content of your AS, you have to seal it with this call. Your AS is not usable until you call this function.

◆ sg_platf_new_hostlink()

void sg_platf_new_hostlink ( sg_platf_host_link_cbarg_t  hostlink)

Add a link connecting an host to the rest of its AS (which must be cluster or vivaldi)

◆ sg_platf_new_trace()

void sg_platf_new_trace ( sg_platf_trace_cbarg_t  trace)

Variable Documentation

◆ mount_list

xbt_dynar_t mount_list = nullptr

◆ surf_parse_models_setup_already_called

int surf_parse_models_setup_already_called = 0
static

◆ current_routing

simgrid::kernel::routing::NetZoneImpl* current_routing = nullptr
static

The current AS in the parsing.