X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b7cd17c5d85000c8ea2a145876058fa296fa6d63..ec063df4a961d3c60ccca6afc0209fca1b061f9f:/src/include/surf/surf.h diff --git a/src/include/surf/surf.h b/src/include/surf/surf.h index 78317ba7be..af144b6828 100644 --- a/src/include/surf/surf.h +++ b/src/include/surf/surf.h @@ -271,6 +271,9 @@ typedef struct surf_model { int (*is_suspended) (surf_action_t action); /**< Return whether an action is suspended */ void (*set_max_duration) (surf_action_t action, double duration); /**< Set the max duration of an action*/ void (*set_priority) (surf_action_t action, double priority); /**< Set the priority of an action */ +#ifdef HAVE_TRACING + void (*set_category) (surf_action_t action, const char *category); /**< Set the category of an action */ +#endif double (*get_remains) (surf_action_t action); /**< Get the remains of an action */ #ifdef HAVE_LATENCY_BOUND_TRACKING int (*get_latency_limited) (surf_action_t action); /**< Return 1 if action is limited by latency, 0 otherwise */ @@ -403,6 +406,21 @@ XBT_PUBLIC(void) surf_network_model_init_SMPI(const char *filename); XBT_PUBLIC(void) surf_network_model_init_LegrandVelho(const char *filename); + +/** \brief Initializes the platform with the network model 'LV08_im' + * \ingroup SURF_models + * \param filename XML platform file name + * + * This model is adds the lazy management improvement to Legrand and + * Velho model. This improvement essentially replaces the list of actions + * inside the simulation kernel by a heap in order to reduce the complexity + * at each iteration of the simulation kernel. + * + * \see surf_workstation_model_init_LegrandVelho() + */ +XBT_PUBLIC(void) im_surf_network_model_init_LegrandVelho(const char + *filename); + /** \brief Initializes the platform with the network model 'Constant' * \ingroup SURF_models * \param filename XML platform file name @@ -417,8 +435,6 @@ XBT_PUBLIC(void) surf_network_model_init_LegrandVelho(const char */ XBT_PUBLIC(void) surf_network_model_init_Constant(const char *filename); -XBT_PUBLIC(void) surf_network_model_init_Vivaldi(const char *filename); - /** \brief Initializes the platform with the network model CM02 * \ingroup SURF_models * \param filename XML platform file name @@ -636,7 +652,7 @@ XBT_PUBLIC(double) surf_solve(double max_date); * * Return the current time in millisecond. */ -XBT_PUBLIC(double) surf_get_clock(void); +XBT_INLINE XBT_PUBLIC(double) surf_get_clock(void); /** \brief Exit SURF * \ingroup SURF_simulation