1 /* Copyright (c) 2006-2017. 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. */
9 import org.simgrid.msg.HostNotFoundException;
10 import org.simgrid.msg.Msg;
13 protected static final int TASK_COUNT = 3;
16 throw new IllegalAccessError("Utility class");
19 public static void main(String[] args) throws HostNotFoundException {
22 String platfFile = "../../examples/platforms/small_platform.xml";
26 File f = new File(platfFile);
28 Msg.error("File " + platfFile + " does not exist in " + System.getProperty("user.dir"));
29 Msg.error("Usage : Main ../platforms/platform.xml");
32 Msg.createEnvironment(platfFile);
33 new Sender("Jacquelin", "Sender", new String[] {"Boivin"}).start();
34 new Receiver ("Boivin", "Receiver", null).start();