Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Network module is working. Does not take latencies into account yet though.
[simgrid.git] / src / surf / network_private.h
1 /* Authors: Arnaud Legrand                                                  */
2
3 /* This program is free software; you can redistribute it and/or modify it
4    under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef _SURF_NETWORK_PRIVATE_H
7 #define _SURF_NETWORK_PRIVATE_H
8
9 #include "surf_private.h"
10
11 typedef enum {
12   SURF_NETWORK_LINK_ON = 1,             /* Ready        */
13   SURF_NETWORK_LINK_OFF = 0             /* Running      */
14 } e_surf_network_link_state_t;
15
16 typedef struct network_link {
17   surf_resource_t resource;   /* Any such object, added in a trace
18                                  should start by this field!!! */
19                               /* Using this object with the public part of
20                                  resource does not make sense */
21   const char *name;
22   xbt_maxmin_float_t bw_current;
23   tmgr_trace_event_t bw_event;
24   xbt_maxmin_float_t lat_current;
25   tmgr_trace_event_t lat_event;
26   e_surf_network_link_state_t state_current;
27   tmgr_trace_event_t state_event;
28   lmm_constraint_t constraint;
29 } s_network_link_t, *network_link_t;
30
31
32 typedef struct network_card {
33   const char *name;
34   int id;
35 } s_network_card_t, *network_card_t;
36
37 typedef struct surf_action_network {
38   s_surf_action_t generic_action;
39   lmm_variable_t variable;
40   network_card_t src;
41   network_card_t dst;
42 } s_surf_action_network_t, *surf_action_network_t;
43
44 #endif                          /* _SURF_NETWORK_PRIVATE_H */