Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New platform files (just add AS tag)
[simgrid.git] / examples / platforms / metaxml-random.xml
1 <!-- This file shows how to define 2 sets of hosts, their corresponding links and how you can bind them using the route:multi tag 
2       Also it shows how to use the random generator for generating random cpu power
3  -->
4  <?xml version='1.0'?>
5  <!DOCTYPE platform SYSTEM "simgrid.dtd">
6  <platform version="2">
7  <AS  id="AS0"  routing="Full">
8  
9    <random id="rand_lyon" min="237333000" max="437333000" mean="337333000" std_deviation="100000000"/>
10    <random id="rand_lille" min="137333000" max="250000000" mean="237333000" std_deviation="400000000"/>
11  
12    <set id="Lille" prefix="lille_" suffix="_host" radical="0-5"/> 
13    <set id="Lyon" prefix="lyon_" suffix="_host" radical="0-3"/> 
14    <foreach set_id="Lyon">
15      <host id="$1" power="$rand(rand_lyon)"/>
16      <link id="$1" bandwidth="3297750" latency="0.000007234"/>
17    </foreach>
18    <foreach set_id="Lille">
19      <host id="$1" power="$rand(rand_lille)"/>
20      <link id="$1" bandwidth="3297750" latency="0.000007234"/>
21    </foreach>
22  
23    <route:multi src="Lille" dst="Lille" symmetric="NO">
24      <link:ctn id="$src"/>
25    </route:multi>
26  
27    <route:multi src="Lyon" dst="Lyon" symmetric="NO">
28      <link:ctn id="$src"/>
29    </route:multi>
30  
31    <route:multi src="Lille" dst="Lyon">
32      <link:ctn id="$src"/>
33      <link:ctn id="$dst"/>
34    </route:multi>
35  
36  </AS>
37  </platform>