4 * Copyright 2006,2007 Martin Quinson, Malek Cherier
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the license (GNU LGPL) which comes with this package.
13 public class Sender extends simgrid.msg.Process {
15 private final double commSizeLat = 1;
16 final double commSizeBw = 100000000;
18 public void main(String[] args) throws JniException, NativeException {
22 int hostCount = args.length;
24 Msg.info("host count : " + hostCount);
25 Host hostTable[] = new Host[hostCount];
27 double computeDuration = 0;
30 for(int pos = 0; pos < args.length ; pos++) {
32 hostTable[pos] = Host.getByName(args[pos]);
33 } catch (HostNotFoundException e) {
34 Msg.info("Invalid deployment file: " + e.toString());
39 for (int pos = 0; pos < hostCount; pos++) {
40 time = Msg.getClock();
42 Msg.info("sender time : " + time);
44 task = new PingPongTask("no name",computeDuration,commSizeLat);
47 hostTable[pos].put(0,task);