Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
revalidate tesh files
[simgrid.git] / examples / README.rst
index 57925db..0420a65 100644 (file)
@@ -119,7 +119,11 @@ Starting and Stoping Actors
 
           This demonstrates the ``start_time`` and ``kill_time`` attribute of the :ref:`pf_tag_actor` tag.
 
-       .. example-tab:: examples/c/actor-lifetime/actor-lifetime.c
+       .. example-tab:: examples/python/actor-lifetime/actor-lifetime.py
+
+          This file is not really interesting: the important matter is in the XML file.
+
+      .. example-tab:: examples/c/actor-lifetime/actor-lifetime.c
 
           This file is not really interesting: the important matter is in the XML file.
 
@@ -589,6 +593,8 @@ Interacting with the Platform
 
       .. example-tab:: examples/s4u/platform-failures/s4u-platform-failures.cpp
 
+      .. example-tab:: examples/c/platform-failures/platform-failures.c
+
       .. group-tab:: XML
 
          .. showfile:: examples/platforms/small_platform_failures.xml
@@ -727,6 +733,11 @@ than the previous examples.
 
           .. showfile:: examples/s4u/app-masterworkers/s4u-app-masterworkers-fun.cpp
              :language: cpp
+
+       .. group-tab:: C
+
+          .. showfile:: examples/c/app-masterworker/app-masterworker.c
+             :language: cpp
     
 Data diffusion
 --------------
@@ -747,6 +758,17 @@ Data diffusion
           .. showfile:: examples/s4u/app-bittorrent/s4u-tracker.cpp
              :language: cpp
 
+       .. group-tab:: C
+
+          .. showfile:: examples/c/app-bittorrent/app-bittorrent.c
+             :language: cpp
+
+          .. showfile:: examples/c/app-bittorrent/bittorrent-peer.c
+             :language: cpp
+
+          .. showfile:: examples/c/app-bittorrent/tracker.c
+             :language: cpp
+
   - **Chained Send:** 
     Data broadcast over a ring of processes.
 
@@ -800,6 +822,23 @@ Distributed Hash Tables (DHT)
           .. showfile:: examples/s4u/dht-kademlia/node.cpp
              :language: cpp
 
+       .. group-tab:: C
+
+          .. showfile:: examples/c/dht-kademlia/dht-kademlia.c
+             :language: cpp
+
+          .. showfile:: examples/c/dht-kademlia/routing_table.c
+             :language: cpp
+
+          .. showfile:: examples/c/dht-kademlia/answer.c
+             :language: cpp
+
+          .. showfile:: examples/c/dht-kademlia/message.c
+             :language: cpp
+
+          .. showfile:: examples/c/dht-kademlia/node.c
+             :language: cpp
+
 .. _s4u_ex_clouds:
 
 Simulating Clouds
@@ -824,6 +863,27 @@ Simulating Clouds
 
        .. example-tab:: examples/c/cloud-migration/cloud-migration.c
 
+=======================
+Model-Related Examples
+=======================
+
+  - **ns-3 as a SimGrid Network Model**
+    This simple ping-pong example demonstrates how to use the bindings to the Network
+    Simulator. The most interesting is probably not the C++ files since
+    they are unchanged from the other simulations, but the associated files,
+    such as the platform file to see how to declare a platform to be used 
+    with the ns-3 bindings of SimGrid and the tesh file to see how to actually
+    start a simulation in these settings.
+
+    .. example-tab:: examples/s4u/network-ns3/s4u-network-ns3.cpp
+
+    .. group-tab:: XML
+
+         **Platform files:**
+
+         .. showfile:: examples/platforms/small_platform_one_link_routes.xml
+            :language: xml
+
 =======================
 Model-Checking Examples
 =======================