X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/59b71b5ec45e206c1ea787b3982563817742f113..612ca769b37fe934c8b17abe1eb17f2fa9817b6e:/include/simgrid/platf_generator.h diff --git a/include/simgrid/platf_generator.h b/include/simgrid/platf_generator.h index 38476fc0d7..fbe912c3fa 100644 --- a/include/simgrid/platf_generator.h +++ b/include/simgrid/platf_generator.h @@ -1,7 +1,8 @@ /* platf_generator.h - Public interface to the SimGrid platforms generator */ -/* Copyright (c) 2004-2012. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2004-2014. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -24,9 +25,11 @@ typedef struct s_context_node_t { double x, y; int degree; e_platf_node_kind kind; + int connect_checked; union { s_sg_platf_host_cbarg_t host_parameters; s_sg_platf_cluster_cbarg_t cluster_parameters; + char* router_id; }; } s_context_node_t, *context_node_t; @@ -55,6 +58,10 @@ XBT_PUBLIC(void) platf_graph_interconnect_zegura(double alpha, double beta, doub XBT_PUBLIC(void) platf_graph_interconnect_waxman(double alpha, double beta); XBT_PUBLIC(void) platf_graph_interconnect_barabasi(void); +XBT_PUBLIC(int) platf_graph_is_connected(void); + +XBT_PUBLIC(void) platf_graph_clear_links(void); + XBT_PUBLIC(void) platf_graph_promote_to_host(context_node_t node, sg_platf_host_cbarg_t parameters); XBT_PUBLIC(void) platf_graph_promote_to_cluster(context_node_t node, sg_platf_cluster_cbarg_t parameters);