Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
We can use the cluster tag without backbone link if bb_bw and bb_lat attributes are...
[simgrid.git] / examples / simdag / platform_script.lua
1 require "simgrid"
2
3   simgrid.AS.new{id="AS0",mode="Full"};
4
5   simgrid.Host.new{id="Tremblay",power=98095000};
6   simgrid.Host.new{id="Jupiter",power=76296000};
7   simgrid.Host.new{id="Fafard",power=76296000};
8   simgrid.Host.new{id="Ginette",power=48492000};
9   simgrid.Host.new{id="Bourassa",power=48492000};
10
11     -- create Links
12   for i=0,11 do
13     simgrid.Link.new{id=i,bandwidth=252750+ i*768,latency=0.000270544+i*0.087};   
14   end
15   -- simgrid.Route.new(src_id,des_id,links_nb,links_list)
16    simgrid.Route.new("Tremblay","Jupiter",{"1"});
17    simgrid.Route.new("Tremblay","Fafard",{"0","1","2","3","4","8"});
18    simgrid.Route.new("Tremblay","Ginette",{"3","4","5"});
19    simgrid.Route.new("Tremblay","Bourassa",{"0","1","3","2","4","6","7"});
20
21    simgrid.Route.new("Jupiter","Tremblay",{"1"});
22    simgrid.Route.new("Jupiter","Fafard",{"0","1","2","3","4","8","9"});
23    simgrid.Route.new("Jupiter","Ginette",{"3","4","5","9"});
24    simgrid.Route.new("Jupiter","Bourassa",{"0","1","2","3","4","6","7","9"});
25  
26    simgrid.Route.new("Fafard","Tremblay",{"0","1","2","3","4","8"});
27    simgrid.Route.new("Fafard","Jupiter",{"0","1","2","3","4","8","9"});
28    simgrid.Route.new("Fafard","Ginette",{"0","1","2","5","8"});
29    simgrid.Route.new("Fafard","Bourassa",{"6","7","8"});
30   
31    simgrid.Route.new("Ginette","Tremblay",{"3","4","5"});
32    simgrid.Route.new("Ginette","Jupiter",{"3","4","5","9"});
33    simgrid.Route.new("Ginette","Fafard",{"0","1","2","5","8"});
34    simgrid.Route.new("Ginette","Bourassa",{"0","1","2","5","6","7"});
35
36    simgrid.Route.new("Bourassa","Tremblay",{"0","1","3","2","4","6","7"});
37    simgrid.Route.new("Bourassa","Jupiter",{"0","1","2","3","4","6","7","9"});
38    simgrid.Route.new("Bourassa","Fafard",{"6","7","8"});
39    simgrid.Route.new("Bourassa","Ginette",{"0","1","2","5","6","7"});
40   
41    --Save Platform
42    simgrid.sd_register_platform();
43
44