X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/31a6e7924c82cf18f981739b2f27f5920b970e73..1ff90bc7103df77877d6860f1f117425afe1a516:/examples/java/app/pingpong/Main.java diff --git a/examples/java/app/pingpong/Main.java b/examples/java/app/pingpong/Main.java deleted file mode 100644 index d933e80cc0..0000000000 --- a/examples/java/app/pingpong/Main.java +++ /dev/null @@ -1,31 +0,0 @@ -/* Copyright (c) 2006-2014, 2016. The SimGrid Team. - * All rights reserved. */ - -/* This program is free software; you can redistribute it and/or modify it - * under the terms of the license (GNU LGPL) which comes with this package. */ - -package app.pingpong; -import org.simgrid.msg.HostNotFoundException; -import org.simgrid.msg.Msg; - -class Main { - private Main() { - throw new IllegalAccessError("Utility class"); - } - protected static final int TASK_COUNT = 3; - - public static void main(String[] args) throws HostNotFoundException { - Msg.init(args); - if(args.length < 1) { - Msg.info("Usage : Main platform_file"); - Msg.info("example : Main ../platforms/platform.xml"); - System.exit(1); - } - - Msg.createEnvironment(args[0]); - new Sender("Jacquelin", "Sender", new String[] {"Boivin"}).start(); - new Receiver ("Boivin", "Receiver", null).start(); - - Msg.run(); - } -}