1 /* Copyright (c) 2012-2014. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
9 import org.simgrid.msg.Msg;
10 import org.simgrid.msg.Host;
11 import org.simgrid.msg.MsgException;
15 throw new IllegalAccessError("Utility class");
18 public static void main(String[] args) throws MsgException {
21 Msg.info("Usage : IO platform_file ");
22 Msg.info("example : IO ../platforms/storage/storage.xml ");
26 Msg.createEnvironment(args[0]);
28 Host[] hosts = Host.all();
30 Msg.info("Number of hosts:" + hosts.length);
31 for (int i = 0; i < hosts.length && i < 4; i++) {
32 new io.file.Node(hosts[i],i).start();