Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
jedule binding to SD started
[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 "jedule_platform.h"
12
13 #include "xbt/dynar.h"
14 #include "xbt/dict.h"
15
16 struct jed_event {
17         int event_id;
18         char *name;
19         double start_time;
20         double end_time;
21         char *type;
22         xbt_dynar_t resource_subsets;
23         xbt_dynar_t characteristics_list; /* just a list of names (strings) */
24         xbt_dict_t info_hash;     /* key/value pairs */
25 };
26
27 typedef struct jed_event s_jed_event_t, *jed_event_t;
28
29 /************************************************************/
30
31 void create_jed_event(jed_event_t *event, char *name, double start_time, double end_time, char *type);
32
33 void jed_event_free(jed_event_t event);
34
35 void jed_event_add_resources(jed_event_t event, xbt_dynar_t host_selection);
36
37 void jed_event_add_characteristic(jed_event_t event, char *characteristic);
38
39 void jed_event_add_info(jed_event_t event, char *key, char *value);
40
41 #endif /* JEDULE_EVENTS_H_ */