Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
bdec97e92d6e5ba02e86265a27b1b2dd682859be
[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   s_sg_platf_link_cbarg_t link_parameters;
21 } s_context_edge_t;
22
23 void platf_graph_init(unsigned long node_count);
24
25 void platf_node_connect(xbt_node_t node1, xbt_node_t node2);
26
27 double platf_node_distance(xbt_node_t node1, xbt_node_t node2);
28
29 double random_pareto(double min, double max, double K, double P, double ALPHA);
30
31 #endif      /* SG_PLATF_GEN_PRIVATE_H */