Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
pingPong -> app/pingpong
[simgrid.git] / examples / java / app / pingpong / Sender.java
similarity index 87%
rename from examples/java/pingPong/Sender.java
rename to examples/java/app/pingpong/Sender.java
index 530b67a..9644b4d 100644 (file)
@@ -4,19 +4,20 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-package pingPong;
+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;
 
 public class Sender extends Process {
   private final double commSizeLat = 1;
   final double commSizeBw = 100000000;
 
-  public Sender(Host host, String name, String[] args) {
-    super(host,name,args);
+  public Sender(String hostname, String name, String[] args) throws HostNotFoundException, NativeException {
+    super(hostname,name,args);
   }
 
   public void main(String[] args) throws MsgException {