final double commSizeLat = 1;
final double commSizeBw = 100000000;
- public void main(String[] args) throws JniException, NativeException {
+ public void main(String[] args) throws MsgException {
Msg.info("hello!");
double communicationTime=0;
double time = Msg.getClock();
- Channel channel = new Channel(0);
Msg.info("try to get a task");
- PingPongTask task = (PingPongTask)channel.get();
+ PingPongTask task = (PingPongTask)Task.receive(getHost().getName());
double timeGot = Msg.getClock();
double timeSent = task.getTime();