- Task task;
- task = Task.receive(getHost().getName());
- task = Task.receive(getHost().getName());
- task = Task.receive(getHost().getName());
+ 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();