Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add/update copyright notices.
[simgrid.git] / examples / lua / splaySim / splay_deploy_masterslave.lua
index 932109c..cd09f62 100644 (file)
@@ -1,12 +1,17 @@
+-- Copyright (c) 2011, 2014. The SimGrid Team.
+-- All rights reserved.
+
+-- This program is free software; you can redistribute it and/or modify it
+-- under the terms of the license (GNU LGPL) which comes with this package.
 
    dofile "master.lua"
    dofile "slave.lua"
    --Set Application
-   simgrid.Host.setFunction{host="Splayd_1",fct="Master",args="20,550000000,1000000,4"};
-   simgrid.Host.setFunction{host="Splayd_5",fct="Slave",args="0"};
-   simgrid.Host.setFunction{host="Splayd_2",fct="Slave",args="1"};
-   simgrid.Host.setFunction{host="Splayd_3",fct="Slave",args="2"};
-   simgrid.Host.setFunction{host="Splayd_4",fct="Slave",args="3"};
+   simgrid.host.set_function{host="Splayd_1",fct="Master",args="20,550000000,1000000,4"};
+   simgrid.host.set_function{host="Splayd_5",fct="Slave",args="0"};
+   simgrid.host.set_function{host="Splayd_2",fct="Slave",args="1"};
+   simgrid.host.set_function{host="Splayd_3",fct="Slave",args="2"};
+   simgrid.host.set_function{host="Splayd_4",fct="Slave",args="3"};
 
   --Save Application 
    simgrid.msg_register_application();