Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make an io package
[simgrid.git] / examples / java / io / file / Main.java
similarity index 90%
rename from examples/java/io/IO.java
rename to examples/java/io/file/Main.java
index f9de388..998f911 100644 (file)
@@ -4,13 +4,13 @@
 /* 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 io;
+package io.file;
 
 import org.simgrid.msg.Msg;
 import org.simgrid.msg.Host;
 import org.simgrid.msg.MsgException;
 
-public class IO {
+public class Main {
   public static void main(String[] args) throws MsgException {
     Msg.init(args);
     if(args.length < 1) {
@@ -25,7 +25,7 @@ public class IO {
 
     Msg.info("Number of hosts:" + hosts.length);
     for (int i = 0; i < hosts.length && i < 4; i++) {
-      new io.Node(hosts[i],i).start();
+      new io.file.Node(hosts[i],i).start();
     }
 
     Msg.run();