1 /* Copyright (c) 2016-2018. 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.Msg;
9 import org.simgrid.msg.Process;
13 /* This is just to prevent anyone from creating an instance of this singleton */
14 throw new IllegalAccessError("Utility class");
17 public static void main(String[] args) {
20 String platform = "../platforms/small_platform.xml";
23 Msg.createEnvironment(platform);
25 Host[] hosts = Host.all();
26 for (int rank = 0; rank < hosts.length; rank++) {
27 Process proc = new RelayRunner(hosts[rank], Integer.toString(rank), null);
30 Msg.info("Number of hosts '"+hosts.length+"'");
33 Msg.info("Simulation time "+Msg.getClock());