Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Implement xbt_dict_t content for storage model
[simgrid.git] / examples / platforms / storage.xml
index bcf9995..97f05fa 100644 (file)
@@ -4,31 +4,55 @@
 <platform version="3">
        <AS id="AS0" routing="Full">
 
-               <storage id="Disk1" model="HDD" content="content.txt">
+               <storage_type id="samsung" model="RAID5" content="../examples/platforms/storage_content.txt">
                        <prop id="Bwrite" value="30" />
                        <prop id="Bread" value="80" />
-               </storage>
-               <storage id="Disk2" model="SSD" content="content.txt">
-                       <prop id="Bwrite" value="110" />
-                       <prop id="Bread" value="300" />
-               </storage>
-               <storage id="Disk3" model="RAID0" content="content.txt">
-                       <prop id="Bwrite" value="60" />
-                       <prop id="Bread" value="160" />
-               </storage>
+               </storage_type>
 
-               <host id="bob" power="1000000000">
-                       <prop id="storage" value="Disk1" />
-               </host>
-               
-               <storage id="Disk4" model="RAID1" content="content.txt">
+               <storage_type id="crucial" model="SSD" content="">
                        <prop id="Bwrite" value="30" />
                        <prop id="Bread" value="80" />
-               </storage>
+               </storage_type>
+
+               <storage_type id="wdigital" model="RAID0" content="">
+                       <prop id="Bwrite" value="30" />
+                       <prop id="Bread" value="80" />
+               </storage_type>
+
+               <storage id="Disk1" typeId="crucial"/>
+               <storage id="Disk2" typeId="samsung"/>
+               <storage id="Disk3" typeId="wdigital"/>
+
+               <host id="bob" power="1000000000">
+                       <mount id="Disk1" name="C:"/>
+                       <mount id="Disk2" name="D:"/>
+                       <mount id="Disk3" name="E:"/>
+                       <mount id="Disk1" name="F:"/>                   
+               </host>         
                
                <host id="alice" power="1000000000">
-                       <prop id="storage" value="Disk4" />
-               </host>         
+                       <mount id="Disk1" name="C:"/>
+               </host>
+
+               <storage id="Disk4" typeId="wdigital"/>
+               <host id="carl" power="1000000000">             
+                       <mount id="Disk4" name="C:"/>
+                       <mount id="Disk1" name="D:"/>                   
+               </host>
+               
+               <host id="denise" power="1000000000">
+                       <mount id="Disk4" name="C:"/>   
+               </host>
+
+               <link id="link1" bandwidth="125000000" latency="5E-5" />
+               <link id="link2" bandwidth="125000000" latency="5E-5" />
+               <link id="link3" bandwidth="125000000" latency="5E-5" />
+       
+               <route src="bob" dst="alice" symmetrical="YES">
+                       <link_ctn id="link1" />
+                       <link_ctn id="link2" />
+                       <link_ctn id="link3" />
+               </route>        
 
        </AS>
 </platform>