Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
345499d0effb1790a5c9bf84f08de20ee09b348b
[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 "surfxml.dtd">
6 <platform version="2">
7
8   <random id="rand_lyon" min="237333000" max="437333000" mean="337333000" std_deviation="100000000"/>
9   <random id="rand_lille" min="137333000" max="250000000" mean="237333000" std_deviation="400000000"/>
10
11   <set id="Lille" prefix="lille_" suffix="_host" radical="0-5"/> 
12   <set id="Lyon" prefix="lyon_" suffix="_host" radical="0-3"/> 
13   <foreach set_id="Lyon">
14     <host id="$1" power="$rand(rand_lyon)"/>
15     <link id="$1" bandwidth="3297750" latency="0.000007234"/>
16   </foreach>
17   <foreach set_id="Lille">
18     <host id="$1" power="$rand(rand_lille)"/>
19     <link id="$1" bandwidth="3297750" latency="0.000007234"/>
20   </foreach>
21
22   <route:multi src="Lille" dst="Lille" symmetric="NO">
23     <link:ctn id="$src"/>
24   </route:multi>
25
26   <route:multi src="Lyon" dst="Lyon" symmetric="NO">
27     <link:ctn id="$src"/>
28   </route:multi>
29
30   <route:multi src="Lille" dst="Lyon">
31     <link:ctn id="$src"/>
32     <link:ctn id="$dst"/>
33   </route:multi>
34
35 </platform>