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

Namespaces

 simgrid
 Alltoall Bruck.
 
 simgrid::surf
 
 simgrid::s4u
 

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...
 
simgrid::kernel::routing::NetPointsg_platf_new_router (std::string name, const char *coords)
 Add a "router" to the network element list. More...
 
void sg_platf_new_link (LinkCreationArgs *link)
 
void sg_platf_new_cluster (ClusterCreationArgs *cluster)
 
void routing_cluster_add_backbone (simgrid::surf::LinkImpl *bb)
 
void sg_platf_new_cabinet (CabinetCreationArgs *cabinet)
 
void sg_platf_new_storage (StorageCreationArgs *storage)
 
void sg_platf_new_storage_type (StorageTypeCreationArgs *storage_type)
 
void sg_platf_new_mount (MountCreationArgs *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 (PeerCreationArgs *peer)
 
void sg_platf_begin ()
 
void sg_platf_end ()
 
static void surf_config_models_setup ()
 
simgrid::s4u::NetZonesg_platf_new_Zone_begin (ZoneCreationArgs *zone)
 Add a Zone to the platform. More...
 
void sg_platf_new_Zone_seal ()
 Specify that the description of the current AS is finished. More...
 
void sg_platf_new_hostlink (HostLinkCreationArgs *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 (TraceCreationArgs *trace)
 

Variables

std::map< std::string, simgrid::surf::StorageImpl * > mount_list
 
std::vector< std::stringknown_storages
 
simgrid::xbt::signal< void(ClusterCreationArgs *)> simgrid::surf::on_cluster
 
std::map< std::string, simgrid::s4u::Host * > simgrid::s4u::host_list
 
static int surf_parse_models_setup_already_called = 0
 
std::map< std::string, simgrid::surf::StorageType * > storage_types
 
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()

simgrid::kernel::routing::NetPoint* sg_platf_new_router ( std::string  name,
const char *  coords 
)

Add a "router" to the network element list.

◆ sg_platf_new_link()

void sg_platf_new_link ( LinkCreationArgs link)

◆ sg_platf_new_cluster()

void sg_platf_new_cluster ( ClusterCreationArgs cluster)

◆ routing_cluster_add_backbone()

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

◆ sg_platf_new_cabinet()

void sg_platf_new_cabinet ( CabinetCreationArgs cabinet)

◆ sg_platf_new_storage()

void sg_platf_new_storage ( StorageCreationArgs storage)

◆ sg_platf_new_storage_type()

void sg_platf_new_storage_type ( StorageTypeCreationArgs storage_type)

◆ sg_platf_new_mount()

void sg_platf_new_mount ( MountCreationArgs 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 ( PeerCreationArgs 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_Zone_begin()

simgrid::s4u::NetZone* sg_platf_new_Zone_begin ( ZoneCreationArgs zone)

Add a Zone to the platform.

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

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

Parameters
zonethe parameters defining the Zone to build.

◆ sg_platf_new_Zone_seal()

void sg_platf_new_Zone_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 ( HostLinkCreationArgs 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 ( TraceCreationArgs trace)

Variable Documentation

◆ mount_list

std::map<std::string, simgrid::surf::StorageImpl*> mount_list

◆ known_storages

std::vector<std::string> known_storages

◆ surf_parse_models_setup_already_called

int surf_parse_models_setup_already_called = 0
static

◆ storage_types

std::map<std::string, simgrid::surf::StorageType*> storage_types

◆ current_routing

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

The current AS in the parsing.