Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Recompile the XML parser, and alleviate an ambiguity in a platform file
[simgrid.git] / examples / platforms / wifi.xml
index fed5614..85a7aed 100755 (executable)
@@ -5,13 +5,13 @@
   <zone id="world" routing="Full">
 
     <zone id="WIFI zone" routing="Cluster">
-        <!-- First declare the Access Point (ie, the wifi media) -->
-        <link id="AP1" sharing_policy="WIFI" bandwidth="54Mbps" latency="0ms" />
-
         <!-- Two stations in the wifi zone -->
         <host id="Station 1" speed="100.0Mf,50.0Mf,20.0Mf" />
         <host id="Station 2" speed="100.0Mf,50.0Mf,20.0Mf" />
 
+        <!-- Declare the wifi media after the hosts (so that the parser don't choke on an ambiguity between internal and leaf zones) -->
+        <link id="AP1" sharing_policy="WIFI" bandwidth="54Mbps,36Mbps,24Mbps" latency="0ms" />
+       
         <!-- Specify that stations use the WIFI link for every communication (incoming or outgoing) -->
         <host_link id="Station 1" up="AP1" down="AP1"/>
         <host_link id="Station 2" up="AP1" down="AP1"/>