SimGrid  3.16
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
 
struct  s_sg_platf_host_link_cbarg_t
 
class  LinkCreationArgs
 
struct  s_sg_platf_peer_cbarg
 
struct  s_sg_platf_route_cbarg
 
struct  s_sg_platf_cluster_cbarg
 
struct  s_sg_platf_cabinet_cbarg
 
struct  s_sg_platf_storage_cbarg
 
struct  s_sg_platf_storage_type_cbarg
 
struct  s_sg_platf_mount_cbarg
 
struct  s_sg_platf_prop_cbarg
 
struct  s_sg_platf_trace_cbarg
 
struct  s_sg_platf_trace_connect_cbarg
 
struct  s_sg_platf_process_cbarg
 
struct  s_sg_platf_AS_cbarg
 

Namespaces

 simgrid
 Alltoall Bruck.
 
 simgrid::surf
 

Macros

#define YY_TYPEDEF_YY_SIZE_T
 
#define SG_PLATF_AS_INITIALIZER   {nullptr,0}
 

Typedefs

typedef size_t yy_size_t
 
typedef s_sg_platf_host_cbarg_tsg_platf_host_cbarg_t
 
typedef s_sg_platf_host_link_cbarg_tsg_platf_host_link_cbarg_t
 
typedef struct s_sg_platf_peer_cbargsg_platf_peer_cbarg_t
 
typedef struct s_sg_platf_peer_cbarg s_sg_platf_peer_cbarg_t
 
typedef struct s_sg_platf_route_cbargsg_platf_route_cbarg_t
 
typedef struct s_sg_platf_route_cbarg s_sg_platf_route_cbarg_t
 
typedef struct s_sg_platf_cluster_cbargsg_platf_cluster_cbarg_t
 
typedef struct s_sg_platf_cluster_cbarg s_sg_platf_cluster_cbarg_t
 
typedef struct s_sg_platf_cabinet_cbargsg_platf_cabinet_cbarg_t
 
typedef struct s_sg_platf_cabinet_cbarg s_sg_platf_cabinet_cbarg_t
 
typedef struct s_sg_platf_storage_cbargsg_platf_storage_cbarg_t
 
typedef struct s_sg_platf_storage_cbarg s_sg_platf_storage_cbarg_t
 
typedef struct s_sg_platf_storage_type_cbargsg_platf_storage_type_cbarg_t
 
typedef struct s_sg_platf_storage_type_cbarg s_sg_platf_storage_type_cbarg_t
 
typedef struct s_sg_platf_mount_cbargsg_platf_mount_cbarg_t
 
typedef struct s_sg_platf_mount_cbarg s_sg_platf_mount_cbarg_t
 
typedef struct s_sg_platf_prop_cbargsg_platf_prop_cbarg_t
 
typedef struct s_sg_platf_prop_cbarg s_sg_platf_prop_cbarg_t
 
typedef struct s_sg_platf_trace_cbargsg_platf_trace_cbarg_t
 
typedef struct s_sg_platf_trace_cbarg s_sg_platf_trace_cbarg_t
 
typedef struct s_sg_platf_trace_connect_cbargsg_platf_trace_connect_cbarg_t
 
typedef struct s_sg_platf_trace_connect_cbarg s_sg_platf_trace_connect_cbarg_t
 
typedef struct s_sg_platf_process_cbargsg_platf_process_cbarg_t
 
typedef struct s_sg_platf_process_cbarg s_sg_platf_process_cbarg_t
 
typedef struct s_sg_platf_AS_cbargsg_platf_AS_cbarg_t
 
typedef struct s_sg_platf_AS_cbarg s_sg_platf_AS_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,
  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_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_host (sg_platf_host_cbarg_t host)
 Add an host to the current AS. More...
 
void sg_platf_new_hostlink (sg_platf_host_link_cbarg_t h)
 Add a link connecting an host to the rest of its AS (which must be cluster or vivaldi) More...
 
simgrid::kernel::routing::NetPointsg_platf_new_router (const char *name, const char *coords)
 Add a "router" to the network element list. More...
 
void sg_platf_new_link (LinkCreationArgs *link)
 
void sg_platf_new_peer (sg_platf_peer_cbarg_t peer)
 
void sg_platf_new_cluster (sg_platf_cluster_cbarg_t clust)
 
void sg_platf_new_cabinet (sg_platf_cabinet_cbarg_t cabinet)
 
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 (sg_platf_trace_cbarg_t trace)
 
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)
 
void sg_platf_new_mount (sg_platf_mount_cbarg_t mount)
 
void sg_platf_new_process (sg_platf_process_cbarg_t process)
 
void sg_platf_trace_connect (sg_platf_trace_connect_cbarg_t 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 ()
 
void routing_route_free (sg_platf_route_cbarg_t route)
 
void sg_instr_new_router (const char *name)
 

Macro Definition Documentation

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

◆ SG_PLATF_AS_INITIALIZER

#define SG_PLATF_AS_INITIALIZER   {nullptr,0}

Typedef Documentation

◆ yy_size_t

typedef size_t yy_size_t

◆ sg_platf_host_cbarg_t

◆ sg_platf_host_link_cbarg_t

◆ sg_platf_peer_cbarg_t

◆ s_sg_platf_peer_cbarg_t

◆ sg_platf_route_cbarg_t

◆ s_sg_platf_route_cbarg_t

◆ sg_platf_cluster_cbarg_t

◆ s_sg_platf_cluster_cbarg_t

◆ sg_platf_cabinet_cbarg_t

◆ s_sg_platf_cabinet_cbarg_t

◆ sg_platf_storage_cbarg_t

◆ s_sg_platf_storage_cbarg_t

◆ sg_platf_storage_type_cbarg_t

◆ s_sg_platf_storage_type_cbarg_t

◆ sg_platf_mount_cbarg_t

◆ s_sg_platf_mount_cbarg_t

◆ sg_platf_prop_cbarg_t

◆ s_sg_platf_prop_cbarg_t

◆ sg_platf_trace_cbarg_t

◆ s_sg_platf_trace_cbarg_t

◆ sg_platf_trace_connect_cbarg_t

◆ s_sg_platf_trace_connect_cbarg_t

◆ sg_platf_process_cbarg_t

◆ s_sg_platf_process_cbarg_t

◆ sg_platf_AS_cbarg_t

◆ s_sg_platf_AS_cbarg_t

Enumeration Type Documentation

◆ e_surf_cluster_topology_t

Enumerator
SURF_CLUSTER_DRAGONFLY 
SURF_CLUSTER_FAT_TREE 
SURF_CLUSTER_FLAT 
SURF_CLUSTER_TORUS 
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_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_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 ( sg_platf_host_link_cbarg_t  h)

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

◆ sg_platf_new_router()

simgrid::kernel::routing::NetPoint* sg_platf_new_router ( const char *  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_peer()

void sg_platf_new_peer ( sg_platf_peer_cbarg_t  peer)

◆ sg_platf_new_cluster()

void sg_platf_new_cluster ( sg_platf_cluster_cbarg_t  clust)

◆ sg_platf_new_cabinet()

void sg_platf_new_cabinet ( sg_platf_cabinet_cbarg_t  cabinet)

◆ 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 ( sg_platf_trace_cbarg_t  trace)

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

◆ sg_platf_new_mount()

void sg_platf_new_mount ( sg_platf_mount_cbarg_t  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 ( sg_platf_trace_connect_cbarg_t  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  )

◆ routing_route_free()

void routing_route_free ( sg_platf_route_cbarg_t  route)

◆ sg_instr_new_router()

void sg_instr_new_router ( const char *  name)