Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
b03750e1d82d4f7ac04cc2d31dcb770ecae274e0
[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
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
23 typedef struct surf_action_network_CM02 {
24   s_surf_action_t generic_action;
25   double latency;
26   double lat_current;
27   double weight;
28   lmm_variable_t variable;
29   double rate;
30 #ifdef HAVE_LATENCY_BOUND_TRACKING
31   int latency_limited;
32 #endif
33   int suspended;
34
35 #ifdef HAVE_TRACING
36   char *src_name;
37   char *dst_name;
38 #endif
39
40 } s_surf_action_network_CM02_t, *surf_action_network_CM02_t;
41
42 #endif                          /* _SURF_NETWORK_PRIVATE_H */