]> AND Public Git Repository - simgrid.git/blobdiff - examples/java/reservationSurfPlugin/Receiver.java
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
actually kill models' names
[simgrid.git] / examples / java / reservationSurfPlugin / Receiver.java
index cd66bb4502c59ca19bb5f1f2a23f2237c5046eae..7097e5bcf288c82931e498dbd627eae7f290d404 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!");
     }