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;
14 throw new IllegalAccessError("Utility class");
16 protected static final int TASK_COUNT = 3;
18 public static void main(String[] args) throws HostNotFoundException {
21 String platfFile = "../../examples/platforms/small_platform.xml";
25 File f = new File(platfFile);
27 System.err.println("File "+platfFile+" does not exist in "+System.getProperty("user.dir"));
28 System.err.println("Usage : Main ../platforms/platform.xml");
31 Msg.createEnvironment(platfFile);
32 new Sender("Jacquelin", "Sender", new String[] {"Boivin"}).start();
33 new Receiver ("Boivin", "Receiver", null).start();