-/* Copyright (c) 2006-2014, 2016. The SimGrid Team.
+ /* Copyright (c) 2006-2014, 2016. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
import org.simgrid.msg.HostNotFoundException;
public class Sender extends Process {
- private final double commSizeLat = 1;
- final double commSizeBw = 100000000;
+ private static final double COMM_SIZE_LAT = 1;
public Sender(String hostname, String name, String[] args) throws HostNotFoundException, NativeException {
super(hostname,name,args);
try {
mailboxes[pos] = Host.getByName(args[pos]).getName();
} catch (HostNotFoundException e) {
+ e.printStackTrace();
Msg.info("Invalid deployment file: " + e.toString());
- System.exit(1);
}
}
Msg.info("sender time: " + time);
- task = new PingPongTask("no name",computeDuration,commSizeLat);
+ task = new PingPongTask("no name",computeDuration,COMM_SIZE_LAT);
task.setTime(time);
task.send(mailboxes[pos]);