Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Simplify this example by not declaring BasicTask since that's empty
[simgrid.git] / examples / java / basic / Master.java
index 594c392..2b4ef9a 100644 (file)
@@ -25,7 +25,7 @@ public class Master extends simgrid.msg.Process {
       Msg.info("Hello! Got "+  slavesCount + " slaves and "+tasksCount+" tasks to process");
       
       for (int i = 0; i < tasksCount; i++) {
-        BasicTask task = new BasicTask("Task_" + i, taskComputeSize, taskCommunicateSize); 
+        Task task = new Task("Task_" + i, taskComputeSize, taskCommunicateSize); 
         Msg.info("Sending \"" + task.getName()+ "\" to \"slave_" + i % slavesCount + "\"");
         task.send("slave_"+(i%slavesCount));
       }