Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cd09f6235fe8afcd6d70fc7e5779321cb2f730c5
[simgrid.git] / examples / lua / splaySim / splay_deploy_masterslave.lua
1 -- Copyright (c) 2011, 2014. The SimGrid Team.
2 -- All rights reserved.
3
4 -- This program is free software; you can redistribute it and/or modify it
5 -- under the terms of the license (GNU LGPL) which comes with this package.
6
7    dofile "master.lua"
8    dofile "slave.lua"
9    --Set Application
10    simgrid.host.set_function{host="Splayd_1",fct="Master",args="20,550000000,1000000,4"};
11    simgrid.host.set_function{host="Splayd_5",fct="Slave",args="0"};
12    simgrid.host.set_function{host="Splayd_2",fct="Slave",args="1"};
13    simgrid.host.set_function{host="Splayd_3",fct="Slave",args="2"};
14    simgrid.host.set_function{host="Splayd_4",fct="Slave",args="3"};
15
16   --Save Application 
17    simgrid.msg_register_application();