Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
let the binding examples work without the funky symlinks. This is a step further...
[simgrid.git] / examples / ruby / README
1
2 Examples containing in this directory
3
4 ===============================================================================
5 * MasterSlave.rb           
6 ===============================================================================
7     - Description:
8     Simple master slave application
9
10     - Platform Files:
11     platform.xml
12         
13     - Deployment Files:
14     deploy.xml
15
16     - Execute: 
17     (WARNING: the current directory must be examples/ruby/)
18     ruby -I ../../src/bindings/ruby MasterSlave.rb
19
20 ===============================================================================
21 * PingPong.rb
22 ===============================================================================
23     - Description:
24     This is a stupid ping/pong example. The processes exchange a simple
25     task and time them
26     NB : in this example we inherit MSG::Task to make our PingPongTask with 
27          our own methods 
28     
29     - Platform Files:
30     ping_pong_platform.xml    
31         
32     - Deployment Files:
33     ping_pong_deployment.xml
34
35     - Execute: 
36     (WARNING: the current directory must be examples/ruby/)
37     ruby -I ../../src/bindings/ruby PingPong.rb
38             
39 ================================================================================
40 * Quicksort.rb
41 ================================================================================
42     - Description:
43     simple example to show how to exchange data between two process (ruby)
44     in this example :
45         *Process Sender : send a task with a table , receive and print the result
46         *Process Receiver : receiving and sorting the 'Sender' table   
47     NB: in the example we use the methods MSG::Task.join(data) and MSG::Task.data() to exchange data
48
49     - Platform Files:
50     quicksort_platform.xml    
51         
52     - Deployment Files:
53     quicksort_deployment.xml
54
55     - Execute: 
56     (WARNING: the current directory must be examples/ruby/)
57     ruby -I ../../src/bindings/ruby Quicksort.rb
58