Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
splaySim: a lua implementation of a splay (simulation)scenario with a masterslave...
[simgrid.git] / examples / lua / splaySim / splay_ctrl.lua
diff --git a/examples/lua/splaySim/splay_ctrl.lua b/examples/lua/splaySim/splay_ctrl.lua
new file mode 100644 (file)
index 0000000..5c8007c
--- /dev/null
@@ -0,0 +1,16 @@
+
+-- Simulation Code ----------------------------------------------------------
+
+require "simgrid"
+if (#arg == 2) then
+       dofile (arg[1])
+       dofile (arg[2])
+else
+       dofile "splay_platform.lua"
+       dofile "splay_deploy_masterslave.lua"
+end
+
+simgrid.run()
+simgrid.info("Simulation's over.See you.")
+simgrid.clean()
+