5 my $nb_peer = $ARGV[0];
8 print "<?xml version='1.0'?>\n";
9 print "<!DOCTYPE platform SYSTEM \"http://simgrid.gforge.inria.fr/simgrid.dtd\">\n";
10 print "<platform version=\"$toversion\">\n";
12 print "\n<config id=\"General\">\n";
13 print "\t<prop id=\"coordinates\" value=\"yes\"></prop>\n";
14 print "</config>\n\n";
16 print "\t<AS id=\"AS0\" routing=\"Vivaldi\">\n";
20 open SITES_LIGNE, $ARGV[0] or die "Unable to open $ARGV[1]\n";
21 while(defined($line=<SITES_LIGNE>))
24 if($line =~ /^(.*) (.*) (.*) h (.*)$/)
26 print "\t\t<peer id=\"peer-$1\" coordinates=\"$2 $3 $4\" power=\"730000000.0\"\n";
27 print "\t\tbw_in=\"13380000\" bw_out=\"1024000\" lat=\"5E-4\" />\n\n";