Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Working on SimDag.
[simgrid.git] / include / simdag / datatypes.h
1 #ifndef SIMDAG_DATATYPES_H
2 #define SIMDAG_DATATYPES_H
3
4 /* Link */
5 typedef struct SG_link {
6   void *data;
7   char *name;
8   /*double capacity;*/
9   /*double current_bandwidth;
10     double current_latency;*/
11 } s_SG_link_t, *SG_link_t;
12
13 /* Workstation */
14 typedef struct SG_workstation {
15   void *data;
16   char *name;
17   /*double power;
18     double available_power;*/
19   /* TODO: route */
20 } s_SG_workstation_t, *SG_workstation_t;
21
22 /* Task state */
23 typedef enum {
24   SG_SCHEDULED,
25   SG_RUNNING,
26   SG_DONE,
27   SG_FAILED
28 } SG_task_state_t;
29
30 /* Task */
31 typedef struct SG_task {
32   void *data;
33   char *name;
34   /*double amount;
35     double remaining_amount;*/
36   SG_task_state_t state;
37   /* TODO: dependencies + watch */
38 } s_SG_task_t, *SG_task_t;
39
40 #endif