Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
platform generation : add promoters and labelers support
[simgrid.git] / src / surf / platf_generator_private.h
1 #ifndef SG_PLATF_GEN_PRIVATE_H
2 #define SG_PLATF_GEN_PRIVATE_H
3
4 #include "xbt/graph.h"
5 #include "simgrid/platf.h"
6
7 typedef struct s_context_node_t {
8   unsigned long id;
9   double x, y;
10   int degree;
11   e_platf_node_kind kind;
12   union {
13     s_sg_platf_host_cbarg_t host_parameters;
14     s_sg_platf_cluster_cbarg_t cluster_parameters;
15   };
16 } s_context_node_t;
17
18 typedef struct s_context_edge_t {
19   unsigned long id;
20   int labeled;
21   s_sg_platf_link_cbarg_t link_parameters;
22 } s_context_edge_t;
23
24 void platf_graph_init(unsigned long node_count);
25
26 void platf_node_connect(xbt_node_t node1, xbt_node_t node2);
27
28 double platf_node_distance(xbt_node_t node1, xbt_node_t node2);
29
30 double random_pareto(double min, double max, double K, double P, double ALPHA);
31
32 #endif      /* SG_PLATF_GEN_PRIVATE_H */