Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Proof-read of communicate/share_resources/update_actions_state.
[simgrid.git] / src / surf / network_private.h
1 /* Copyright (c) 2004, 2005, 2007, 2008, 2009, 2010. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef _SURF_NETWORK_PRIVATE_H
8 #define _SURF_NETWORK_PRIVATE_H
9
10 #include "surf_private.h"
11 #include "xbt/dict.h"
12 #include "xbt/fifo.h"
13
14 typedef struct network_link_CM02 {
15   s_surf_resource_lmm_t lmm_resource;   /* must remain first to be added to a trace */
16
17   /* Using this object with the public part of
18      model does not make sense */
19   double lat_current;
20   tmgr_trace_event_t lat_event;
21 } s_link_CM02_t, *link_CM02_t;
22
23 enum heap_action_type{
24   LATENCY = 100,
25   MAX_DURATION,
26   NORMAL,
27   NOTSET
28 };
29
30 typedef struct surf_action_network_CM02 {
31   s_surf_action_t generic_action;
32   s_xbt_swag_hookup_t action_list_hookup;
33   double latency;
34   double lat_current;
35   double weight;
36   lmm_variable_t variable;
37   double rate;
38 #ifdef HAVE_SMPI
39   struct {
40      const char* link_name;
41      double gap;
42      double size;
43      xbt_fifo_item_t fifo_item;
44   } sender;
45 #endif
46 #ifdef HAVE_LATENCY_BOUND_TRACKING
47   int latency_limited;
48 #endif
49   int suspended;
50 #ifdef HAVE_TRACING
51   char *src_name;
52   char *dst_name;
53 #endif
54   int index_heap;
55   enum heap_action_type hat;
56   double last_update;
57 } s_surf_action_network_CM02_t, *surf_action_network_CM02_t;
58
59 #endif                          /* _SURF_NETWORK_PRIVATE_H */