Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : fix dpor
[simgrid.git] / include / instr / jedule / jedule_events.h
1 /*
2  * jedule_events.h
3  *
4  *  Created on: Nov 30, 2010
5  *      Author: sascha
6  */
7
8 #ifndef JEDULE_EVENTS_H_
9 #define JEDULE_EVENTS_H_
10
11 #include "simgrid_config.h"
12
13 #include "xbt/dynar.h"
14 #include "xbt/dict.h"
15
16 #include "instr/jedule/jedule_platform.h"
17
18
19 #ifdef HAVE_JEDULE
20
21 struct jed_event {
22   int event_id;
23   char *name;
24   double start_time;
25   double end_time;
26   char *type;
27   xbt_dynar_t resource_subsets;
28   xbt_dynar_t characteristics_list; /* just a list of names (strings) */
29   xbt_dict_t info_hash;     /* key/value pairs */
30 };
31
32 typedef struct jed_event s_jed_event_t, *jed_event_t;
33
34 /************************************************************/
35
36 void create_jed_event(jed_event_t *event, char *name, double start_time, double end_time, const char *type);
37
38 void jed_event_free(jed_event_t event);
39
40 void jed_event_add_resources(jed_event_t event, xbt_dynar_t host_selection);
41
42 void jed_event_add_characteristic(jed_event_t event, char *characteristic);
43
44 void jed_event_add_info(jed_event_t event, char *key, char *value);
45
46 #endif
47
48 #endif /* JEDULE_EVENTS_H_ */