Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
basic layer for simdag bindings ( modifyin' the return value of simulate from SD_tas...
[simgrid.git] / src / bindings / rubyDag / example.rb
index c3993a0..e828d53 100644 (file)
@@ -47,16 +47,19 @@ class Example
     
     rate = -1
     
     
     rate = -1
     
+    
 #     Scheduling
     
 #     Scheduling
     
-    DAG::Task.schedule(taskA,workstation_number,workstation_list,computation_amount,communication_amount,rate)
+    DAG::Task.schedule(taskA,workstation_number,workstation_list,computation_amount,communication_amount,rate) 
     DAG::Task.schedule(taskB,workstation_number,workstation_list,computation_amount,communication_amount,rate)
     DAG::Task.schedule(taskC,workstation_number,workstation_list,computation_amount,communication_amount,rate)
     DAG::Task.schedule(taskD,workstation_number,workstation_list,computation_amount,communication_amount,rate)
     DAG::Task.schedule(taskB,workstation_number,workstation_list,computation_amount,communication_amount,rate)
     DAG::Task.schedule(taskC,workstation_number,workstation_list,computation_amount,communication_amount,rate)
     DAG::Task.schedule(taskD,workstation_number,workstation_list,computation_amount,communication_amount,rate)
-   
+  
+       
     changed_tasks = Array.new()
     changed_tasks = DAG::Task.simulate(-1.0)
 
     changed_tasks = Array.new()
     changed_tasks = DAG::Task.simulate(-1.0)
 
+
     for i in 0..changed_tasks.size-1
       puts "Task "+ changed_tasks[i].name + " Started at " + changed_tasks[i].startTime.to_s + " has been done at "+ changed_tasks[i].finishTime.to_s
       
     for i in 0..changed_tasks.size-1
       puts "Task "+ changed_tasks[i].name + " Started at " + changed_tasks[i].startTime.to_s + " has been done at "+ changed_tasks[i].finishTime.to_s