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!");
}