Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix compilation error since TAG tutorial
[simgrid.git] / src / surf / network_private.h
1 /* Copyright (c) 2004-2012. The SimGrid Team. All rights reserved.          */
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 #include "xbt/dict.h"
11 #include "xbt/fifo.h"
12
13 typedef struct network_link_CM02 {
14   s_surf_resource_lmm_t lmm_resource;   /* must remain first to be added to a trace */
15
16   /* Using this object with the public part of
17      model does not make sense */
18   double lat_current;
19   tmgr_trace_event_t lat_event;
20 } s_link_CM02_t, *link_CM02_t;
21
22 typedef struct surf_action_network_CM02 {
23   s_surf_action_lmm_t generic_lmm_action;
24   double latency;
25   double lat_current;
26   double weight;
27   double rate;
28   struct {
29      const char* link_name;
30      double gap;
31      double size;
32      xbt_fifo_item_t fifo_item;
33   } sender;
34 #ifdef HAVE_LATENCY_BOUND_TRACKING
35   int latency_limited;
36 #endif
37 } s_surf_action_network_CM02_t, *surf_action_network_CM02_t;
38
39 #endif                          /* _SURF_NETWORK_PRIVATE_H */