X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7da44b26eb7f4da0d4ce7672f479dea4d01767b3..a38c139dae908a891ed224eb09f8d517f7bdf6b3:/include/simgrid/platf.h diff --git a/include/simgrid/platf.h b/include/simgrid/platf.h index c6ec0f6c17..8014a9b70f 100644 --- a/include/simgrid/platf.h +++ b/include/simgrid/platf.h @@ -11,6 +11,27 @@ #include /* our toolbox */ +typedef struct tmgr_trace *tmgr_trace_t; /**< Opaque structure defining an availability trace */ + +/** Defines whether a given resource is working or not */ +typedef enum { + SURF_RESOURCE_ON = 1, /**< Up & ready */ + SURF_RESOURCE_OFF = 0 /**< Down & broken */ +} e_surf_resource_state_t; + + +typedef struct s_surf_parsing_host_arg { + char* V_host_id; //id + double V_host_power_peak; //power + int V_host_core; //core + double V_host_power_scale; //availability + tmgr_trace_t V_host_power_trace; //availability file + e_surf_resource_state_t V_host_state_initial; //state + tmgr_trace_t V_host_state_trace; //state file + const char* V_host_coord; +} s_surf_parsing_host_arg_t, *surf_parsing_host_arg_t; + + XBT_PUBLIC(void) sg_platf_new_AS_open(const char *id, const char *mode); XBT_PUBLIC(void) sg_platf_new_AS_close(void);