Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do the parsing one time and not more.
[simgrid.git] / src / include / surf / surfxml_parse_values.h
1 /*
2  * surfxml_parse_values.h
3  *
4  *  Created on: 24 oct. 2011
5  *      Author: navarrop
6  */
7
8 #ifndef SURFXML_PARSE_VALUES_H_
9 #define SURFXML_PARSE_VALUES_H_
10
11 struct V_peer {
12         char* V_peer_id;
13         double V_peer_power;
14         double V_peer_bw_in;
15         double V_peer_bw_out;
16         double V_peer_lat;
17         char* V_peer_coord;
18         tmgr_trace_t V_peer_availability_trace;
19         tmgr_trace_t V_peer_state_trace;
20 };
21
22 struct V_link {
23         char* V_link_id;
24         double V_link_bandwidth;
25         tmgr_trace_t V_link_bandwidth_file;
26         double V_link_latency;
27         tmgr_trace_t V_link_latency_file;
28         e_surf_resource_state_t V_link_state;
29         tmgr_trace_t V_link_state_file;
30         int V_link_sharing_policy;
31 };
32
33 struct V_cluster {
34         char* V_cluster_id;
35         char* V_cluster_prefix;
36         char* V_cluster_suffix;
37         char* V_cluster_radical;
38         double V_cluster_power;
39         int V_cluster_core;
40         double V_cluster_bw;
41         double V_cluster_lat;
42         double V_cluster_bb_bw;
43         double V_cluster_bb_lat;
44         char * V_cluster_router_id;
45         int V_cluster_sharing_policy;
46         int V_cluster_bb_sharing_policy;
47 };
48
49 struct V_router {
50         char* V_router_id;
51         char* V_router_coord;
52 };
53
54 struct V_host {
55         char* V_host_id;                                                                                                        //id
56         double V_host_power_peak;                                                                                       //power
57         int V_host_core;                                                                                                        //core
58         double V_host_power_scale;                                                                                      //availability
59         tmgr_trace_t V_host_power_trace;                                                                        //availability file
60         e_surf_resource_state_t V_host_state_initial;                                           //state
61         tmgr_trace_t V_host_state_trace;                                                                        //state file
62         char* V_host_coord;
63 };
64
65 struct V_host s_host;
66 struct V_router s_router;
67 struct V_cluster s_cluster;
68 struct V_peer s_peer;
69 struct V_link s_link;
70
71 #endif /* SURFXML_PARSE_VALUES_H_ */