X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7f477f475e8bd79141d881a044c59e56a37c1eda..62cbd47a6b39a36431539d60f0f0efe81d228e4b:/src/surf/platf_generator_private.h diff --git a/src/surf/platf_generator_private.h b/src/surf/platf_generator_private.h index 3b95d508ac..ea57365992 100644 --- a/src/surf/platf_generator_private.h +++ b/src/surf/platf_generator_private.h @@ -1,32 +1,23 @@ +/* Copyright (c) 2012, 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. */ + #ifndef SG_PLATF_GEN_PRIVATE_H #define SG_PLATF_GEN_PRIVATE_H +#include + #include "xbt/graph.h" #include "simgrid/platf.h" -typedef struct s_context_node_t { - unsigned long id; - double x, y; - int degree; - e_platf_node_kind kind; - union { - s_sg_platf_host_cbarg_t host_parameters; - s_sg_platf_cluster_cbarg_t cluster_parameters; - }; -} s_context_node_t; - -typedef struct s_context_edge_t { - unsigned long id; - int labeled; - s_sg_platf_link_cbarg_t link_parameters; -} s_context_edge_t; - -void platf_graph_init(unsigned long node_count); +XBT_PRIVATE void platf_graph_init(unsigned long node_count); -void platf_node_connect(xbt_node_t node1, xbt_node_t node2); +XBT_PRIVATE void platf_node_connect(xbt_node_t node1, xbt_node_t node2); -double platf_node_distance(xbt_node_t node1, xbt_node_t node2); +XBT_PRIVATE double platf_node_distance(xbt_node_t node1, xbt_node_t node2); -double random_pareto(double min, double max, double K, double P, double ALPHA); +XBT_PRIVATE double random_pareto(double min, double max, double K, double P, double ALPHA); #endif /* SG_PLATF_GEN_PRIVATE_H */