Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename host callbacks
[simgrid.git] / examples / java / reservationSurfPlugin / Receiver.java
index cd66bb4..7097e5b 100644 (file)
@@ -21,15 +21,11 @@ public class Receiver extends Process {
    public void main(String[] args) throws MsgException {
 
       Msg.info("helloo!");
-      double communicationTime=0;
 
-      Msg.info("try to get a task");
-
-      Task task = Task.receive(getHost().getName());
-      double timeGot = Msg.getClock();
-
-      Msg.info("Got at time "+ timeGot);
-      task.execute();
+      Task task;
+      task = Task.receive(getHost().getName());
+      task = Task.receive(getHost().getName());
+      task = Task.receive(getHost().getName());
 
       Msg.info("goodbye!");
     }