X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ccca584250e6b07d6364482c27ac0a5c2c8c425f..b1d56f5033e22018df1944aba31bc90a1fe4b478:/include/simgrid/platf.h diff --git a/include/simgrid/platf.h b/include/simgrid/platf.h index 53dfb19e2d..c4cb422072 100644 --- a/include/simgrid/platf.h +++ b/include/simgrid/platf.h @@ -19,13 +19,23 @@ XBT_PUBLIC(sg_routing_edge_t) sg_routing_edge_by_name_or_null(const char *name); typedef struct tmgr_trace *tmgr_trace_t; /**< Opaque structure defining an availability trace */ + +/** opaque structure defining a event generator for avaibility based on a probability distribution */ +typedef struct probabilist_event_generator *probabilist_event_generator_t; + XBT_PUBLIC(tmgr_trace_t) tmgr_trace_new_from_file(const char *filename); XBT_PUBLIC(tmgr_trace_t) tmgr_trace_new_from_string(const char *id, const char *input, double periodicity); -XBT_PUBLIC(tmgr_trace_t) tmgr_trace_new_uniform(double alpha, double beta); -XBT_PUBLIC(tmgr_trace_t) tmgr_trace_new_exponential(double lambda); -XBT_PUBLIC(tmgr_trace_t) tmgr_trace_new_weibull(double lambda, double k); +XBT_PUBLIC(tmgr_trace_t) tmgr_trace_new_from_generator(const char *id, + probabilist_event_generator_t generator1, + probabilist_event_generator_t generator2); + +XBT_PUBLIC(probabilist_event_generator_t) tmgr_event_generator_new_uniform(double alpha, + double beta); +XBT_PUBLIC(probabilist_event_generator_t) tmgr_event_generator_new_exponential(double lambda); +XBT_PUBLIC(probabilist_event_generator_t) tmgr_event_generator_new_weibull(double lambda, + double k); /** Defines whether a given resource is working or not */ typedef enum {