Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
platform generation : modify some interfaces
[simgrid.git] / include / simgrid / platf_generator.h
1
2 /* platf_generator.h - Public interface to the SimGrid platforms generator  */
3
4 /* Copyright (c) 2004-2012. The SimGrid Team. All rights reserved.          */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. */
8
9 #ifndef SG_PLATF_GEN_H
10 #define SG_PLATF_GEN_H
11
12 #include "xbt.h"
13 #include "xbt/graph.h" //Only for platf_graph_get()
14 #include "platf.h"
15
16 typedef enum {
17   ROUTER,
18   HOST,
19   CLUSTER
20 } e_platf_node_kind;
21
22 typedef struct s_context_node_t *context_node_t;
23 typedef struct s_context_edge_t *context_edge_t;
24
25 XBT_PUBLIC(void) platf_random_seed(unsigned long seed[6]);
26
27 XBT_PUBLIC(void) platf_graph_uniform(unsigned long node_count);
28 XBT_PUBLIC(void) platf_graph_heavytailed(unsigned long node_count);
29
30 XBT_PUBLIC(void) platf_graph_interconnect_star(void);
31 XBT_PUBLIC(void) platf_graph_interconnect_line(void);
32 XBT_PUBLIC(void) platf_graph_interconnect_ring(void);
33 XBT_PUBLIC(void) platf_graph_interconnect_clique(void);
34 XBT_PUBLIC(void) platf_graph_interconnect_uniform(double alpha);
35 XBT_PUBLIC(void) platf_graph_interconnect_exponential(double alpha);
36
37 XBT_PUBLIC(void) platf_graph_promote_to_host(context_node_t node, sg_platf_host_cbarg_t parameters);
38 XBT_PUBLIC(void) platf_graph_promote_to_cluster(context_node_t node, sg_platf_cluster_cbarg_t parameters);
39
40 XBT_PUBLIC(void) platf_graph_link_label(context_edge_t edge, sg_platf_link_cbarg_t parameters);
41
42 // WARNING : Only for debbugging ; should be removed when platform
43 // generation works correctly
44 XBT_PUBLIC(xbt_graph_t) platf_graph_get(void);
45
46 #endif              /* SG_PLATF_GEN_H */
47