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.Process;
14 /* This is just to prevent anyone from creating an instance of this singleton */
15 throw new IllegalAccessError("Utility class");
18 public static void main(String[] args) throws HostNotFoundException {
21 String platform = "../platforms/small_platform.xml";
24 Msg.createEnvironment(platform);
26 Host[] hosts = Host.all();
27 for (int rank = 0; rank < hosts.length; rank++) {
28 Process proc = new RelayRunner(hosts[rank], Integer.toString(rank), null);
31 Msg.info("Number of hosts '"+hosts.length+"'");
34 Msg.info("Simulation time "+Msg.getClock());