Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
178f61ae9691e003d063e0a1bc55cf52e63ed95b
[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
15 typedef enum {
16   ROUTER,
17   HOST,
18   CLUSTER
19 } e_platf_node_kind;
20
21 XBT_PUBLIC(void) platf_random_seed(unsigned long seed[6]);
22
23 XBT_PUBLIC(void) platf_graph_uniform(unsigned long node_count);
24 XBT_PUBLIC(void) platf_graph_heavytailed(unsigned long node_count);
25
26 XBT_PUBLIC(void) platf_graph_interconnect_star(void);
27 XBT_PUBLIC(void) platf_graph_interconnect_line(void);
28 XBT_PUBLIC(void) platf_graph_interconnect_ring(void);
29
30 // WARNING : Only for debbugging ; should be removed when platform
31 // generation works correctly
32 XBT_PUBLIC(xbt_graph_t) platf_graph_get(void);
33
34 #endif              /* SG_PLATF_GEN_H */