3 # Copyright (c) 2011, 2014. The SimGrid Team.
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.
13 my $nb_peer = $ARGV[0];
16 print "<?xml version='1.0'?>\n";
17 print "<!DOCTYPE platform SYSTEM \"http://simgrid.gforge.inria.fr/simgrid.dtd\">\n";
18 print "<platform version=\"$toversion\">\n";
20 print "\n<config id=\"General\">\n";
21 print "\t<prop id=\"coordinates\" value=\"yes\"></prop>\n";
22 print "</config>\n\n";
24 print "\t<AS id=\"AS0\" routing=\"Vivaldi\">\n";
28 open SITES_LIGNE, $ARGV[0] or die "Unable to open $ARGV[1]\n";
29 while(defined($line=<SITES_LIGNE>))
32 if($line =~ /^(.*) (.*) (.*) h (.*)$/)
34 print "\t\t<peer id=\"peer-$1\" coordinates=\"$2 $3 $4\" power=\"730000000.0\"\n";
35 print "\t\tbw_in=\"13380000\" bw_out=\"1024000\" lat=\"5E-4\" />\n\n";