Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Starting to code a "constant" network model.
[simgrid.git] / src / include / surf / surf.h
index ba71711..8b83c0a 100644 (file)
@@ -289,6 +289,21 @@ XBT_PUBLIC(void) create_workstations(void);
  */
 XBT_PUBLIC_DATA(surf_network_model_t) surf_network_model;
 
+
+/** \brief Initializes the platform with the network model 'Constant'
+ *  \ingroup SURF_models
+ *  \param filename XML platform file name
+ *
+ *  In this model, the communication time between two network cards is
+ *  constant, hence no need for a routing table. This is particularly
+ *  usefull when simulating huge distributed algorithms where
+ *  scalability is really an issue. This function is called in
+ *  conjunction with surf_workstation_model_init_compound.
+ *
+ *  \see surf_workstation_model_init_compound()
+ */
+XBT_PUBLIC(void) surf_network_model_init_Constant(const char *filename);
+
 /** \brief Initializes the platform with the network model CM02
  *  \ingroup SURF_models
  *  \param filename XML platform file name
@@ -364,11 +379,11 @@ XBT_PUBLIC(void) surf_network_model_init_SDP(const char *filename);
 #endif
 
 #if defined(HAVE_GTNETS) && defined(HAVE_SDP)
-# define surf_network_model_description_size  5
+# define surf_network_model_description_size  6
 #elsif defined(HAVE_GTNETS) || defined(HAVE_SDP)
-# define surf_network_model_description_size  4
+# define surf_network_model_description_size  5
 #else 
-# define surf_network_model_description_size  3
+# define surf_network_model_description_size  4
 #endif   
 /** \brief The list of all available network model models
  *  \ingroup SURF_models
@@ -559,8 +574,8 @@ void free_string(void*);
 void init_data(void);
 void parse_route_elem(void);
 
-/* surf parse file related */
-void parse_platform_file(const char* file);
+/* surf parse file related (public because called from a test suite) */
+XBT_PUBLIC(void) parse_platform_file(const char* file);
 
 /* Stores the sets */
 XBT_PUBLIC_DATA(xbt_dict_t) set_list;