X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c861b15010ab22b3a4b7b7762929433f6d8b47ff..1a9678e895ca8d18ed1ffdad4407a6aaa6fc9a2b:/examples/java/alias1/Alias1Test.java diff --git a/examples/java/alias1/Alias1Test.java b/examples/java/alias1/Alias1Test.java new file mode 100644 index 0000000000..1d6d0b5d67 --- /dev/null +++ b/examples/java/alias1/Alias1Test.java @@ -0,0 +1,42 @@ +/* + * $Id: BasicTest.java 5059 2007-11-19 20:01:59Z mquinson $ + * + * Copyright 2006,2007 Martin Quinson, Malek Cherier + * 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. + */ + +import simgrid.msg.*; + +public class Alias1Test { + + /* This only contains the launcher. If you do nothing more than than you can run + * java simgrid.msg.Msg + * which also contains such a launcher + */ + + public static void main(String[] args) throws JniException, NativeException { + + /* initialize the MSG simulation. Must be done before anything else (even logging). */ + Msg.init(args); + + if(args.length < 2) { + + Msg.info("Usage : Basic platform_file deployment_file"); + Msg.info("example : Basic basic_platform.xml basic_deployment.xml"); + System.exit(1); + } + + /* specify a paje output file. */ + Msg.pajeOutput("basic.trace"); + + /* construct the platform and deploy the application */ + Msg.createEnvironment(args[0]); + Msg.deployApplication(args[1]); + + /* execute the simulation. */ + Msg.run(); + } +}