1 /* Copyright (c) 2016. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
7 import org.simgrid.msg.Host;
8 import org.simgrid.msg.HostNotFoundException;
9 import org.simgrid.msg.Msg;
10 import org.simgrid.msg.NativeException;
11 import org.simgrid.msg.Process;
15 /* This is just to prevent anyone from creating an instance of this singleton */
16 throw new IllegalAccessError("Utility class");
19 public static void main(String[] args) throws HostNotFoundException, NativeException {
22 String platform = "../platforms/small_platform.xml";
25 Msg.createEnvironment(platform);
27 Host[] hosts = Host.all();
28 for (int rank = 0; rank < hosts.length; rank++) {
29 Process proc = new RelayRunner(hosts[rank], Integer.toString(rank), null);
32 Msg.info("Number of hosts '"+hosts.length+"'");
35 Msg.info("Simulation time "+Msg.getClock());