SimGrid  3.18
Versatile Simulation of Distributed Systems
platf_private.hpp File Reference
#include "simgrid/host.h"
#include "src/surf/xml/platf.hpp"
#include <map>
#include <string>
#include <vector>
#include "src/surf/xml/simgrid_dtd.h"

Classes

struct  s_sg_platf_host_cbarg_t
 
class  HostLinkCreationArgs
 
class  LinkCreationArgs
 
class  PeerCreationArgs
 
struct  s_sg_platf_route_cbarg_t
 
class  ClusterCreationArgs
 
class  CabinetCreationArgs
 
class  StorageCreationArgs
 
class  StorageTypeCreationArgs
 
class  MountCreationArgs
 
struct  s_sg_platf_prop_cbarg_t
 
class  TraceCreationArgs
 
class  TraceConnectCreationArgs
 
struct  s_sg_platf_process_cbarg_t
 
class  ZoneCreationArgs
 

Namespaces

 simgrid
 Alltoall Bruck.
 
 simgrid::surf
 

Macros

#define YY_TYPEDEF_YY_SIZE_T
 

Typedefs

typedef size_t yy_size_t
 
typedef s_sg_platf_host_cbarg_tsg_platf_host_cbarg_t
 
typedef s_sg_platf_route_cbarg_tsg_platf_route_cbarg_t
 
typedef s_sg_platf_prop_cbarg_tsg_platf_prop_cbarg_t
 
typedef s_sg_platf_process_cbarg_tsg_platf_process_cbarg_t
 

Enumerations

enum  e_surf_cluster_topology_t { SURF_CLUSTER_DRAGONFLY = 3, SURF_CLUSTER_FAT_TREE = 2, SURF_CLUSTER_FLAT = 1, SURF_CLUSTER_TORUS = 0 }
 

Functions

void routing_cluster_add_backbone (simgrid::surf::LinkImpl *bb)
 
void sg_platf_begin ()
 
void sg_platf_end ()
 
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_host (sg_platf_host_cbarg_t host)
 Add an host to the current AS. More...
 
void sg_platf_new_hostlink (HostLinkCreationArgs *h)
 Add a link connecting an host to the rest of its AS (which must be cluster or vivaldi) More...
 
void sg_platf_new_link (LinkCreationArgs *link)
 
void sg_platf_new_peer (PeerCreationArgs *peer)
 
void sg_platf_new_cluster (ClusterCreationArgs *clust)
 
void sg_platf_new_cabinet (CabinetCreationArgs *cabinet)
 
simgrid::kernel::routing::NetPointsg_platf_new_router (std::string, const char *coords)
 Add a "router" to the network element list. More...
 
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_trace (TraceCreationArgs *trace)
 
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_process (sg_platf_process_cbarg_t process)
 
void sg_platf_trace_connect (TraceConnectCreationArgs *trace_connect)
 
int surf_parse_lex ()
 
int surf_parse_get_lineno ()
 Get the current line number. More...
 
FILE * surf_parse_get_in ()
 Get the input stream. More...
 
FILE * surf_parse_get_out ()
 Get the output stream. More...
 
int surf_parse_get_leng ()
 Get the length of the current token. More...
 
char * surf_parse_get_text ()
 Get the current token. More...
 
void surf_parse_set_lineno (int line_number)
 Set the current line number. More...
 
void surf_parse_set_in (FILE *in_str)
 Set the input stream. More...
 
void surf_parse_set_out (FILE *out_str)
 
int surf_parse_get_debug ()
 
void surf_parse_set_debug (int bdebug)
 
int surf_parse_lex_destroy ()
 

Macro Definition Documentation

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Typedef Documentation

◆ yy_size_t

typedef size_t yy_size_t

◆ sg_platf_host_cbarg_t

◆ sg_platf_route_cbarg_t

◆ sg_platf_prop_cbarg_t

◆ sg_platf_process_cbarg_t

Enumeration Type Documentation

◆ e_surf_cluster_topology_t

Enumerator
SURF_CLUSTER_DRAGONFLY 
SURF_CLUSTER_FAT_TREE 
SURF_CLUSTER_FLAT 
SURF_CLUSTER_TORUS 

Function Documentation

◆ routing_cluster_add_backbone()

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

◆ sg_platf_begin()

void sg_platf_begin ( )

◆ sg_platf_end()

void sg_platf_end ( )

◆ 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_host()

void sg_platf_new_host ( sg_platf_host_cbarg_t  host)

Add an host to the current AS.

◆ sg_platf_new_hostlink()

void sg_platf_new_hostlink ( HostLinkCreationArgs h)

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

◆ sg_platf_new_link()

void sg_platf_new_link ( LinkCreationArgs link)

◆ sg_platf_new_peer()

void sg_platf_new_peer ( PeerCreationArgs peer)

◆ sg_platf_new_cluster()

void sg_platf_new_cluster ( ClusterCreationArgs clust)

◆ sg_platf_new_cabinet()

void sg_platf_new_cabinet ( CabinetCreationArgs cabinet)

◆ sg_platf_new_router()

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

Add a "router" to the network element list.

◆ 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_trace()

void sg_platf_new_trace ( TraceCreationArgs trace)

◆ 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_process()

void sg_platf_new_process ( sg_platf_process_cbarg_t  process)

◆ sg_platf_trace_connect()

void sg_platf_trace_connect ( TraceConnectCreationArgs trace_connect)

◆ surf_parse_lex()

int surf_parse_lex ( )

◆ surf_parse_get_lineno()

int surf_parse_get_lineno ( void  )

Get the current line number.

◆ surf_parse_get_in()

FILE * surf_parse_get_in ( void  )

Get the input stream.

◆ surf_parse_get_out()

FILE * surf_parse_get_out ( void  )

Get the output stream.

◆ surf_parse_get_leng()

int surf_parse_get_leng ( void  )

Get the length of the current token.

◆ surf_parse_get_text()

char * surf_parse_get_text ( void  )

Get the current token.

◆ surf_parse_set_lineno()

void surf_parse_set_lineno ( int  _line_number)

Set the current line number.

Parameters
_line_numberline number

◆ surf_parse_set_in()

void surf_parse_set_in ( FILE *  _in_str)

Set the input stream.

This does not discard the current input buffer.

Parameters
_in_strA readable stream.
See also
surf_parse__switch_to_buffer

◆ surf_parse_set_out()

void surf_parse_set_out ( FILE *  out_str)

◆ surf_parse_get_debug()

int surf_parse_get_debug ( void  )

◆ surf_parse_set_debug()

void surf_parse_set_debug ( int  bdebug)

◆ surf_parse_lex_destroy()

int surf_parse_lex_destroy ( void  )