* under the terms of the license (GNU LGPL) which comes with this package. */
package app.pingpong;
-import org.simgrid.msg.Msg;
import org.simgrid.msg.Host;
-import org.simgrid.msg.Process;
-import org.simgrid.msg.MsgException;
-import org.simgrid.msg.NativeException;
import org.simgrid.msg.HostNotFoundException;
+import org.simgrid.msg.Msg;
+import org.simgrid.msg.MsgException;
+import org.simgrid.msg.Process;
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 {
+ public Sender(String hostname, String name, String[] args) throws HostNotFoundException {
super(hostname,name,args);
}
int hostCount = args.length;
Msg.info("host count: " + hostCount);
- String mailboxes[] = new String[hostCount];
+ String[] mailboxes = new String[hostCount];
double time;
double computeDuration = 0;
PingPongTask task;
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]);