+++ /dev/null
-/*\r
- * $Id: BasicTest.java 5059 2007-11-19 20:01:59Z mquinson $\r
- *\r
- * Copyright 2006,2007 Martin Quinson, Malek Cherier \r
- * All rights reserved. \r
- *\r
- * This program is free software; you can redistribute it and/or modify it\r
- * under the terms of the license (GNU LGPL) which comes with this package. \r
- */\r
-\r
-import simgrid.msg.*;\r
-\r
-public class Alias1Test {\r
- \r
- /* This only contains the launcher. If you do nothing more than than you can run \r
- * java simgrid.msg.Msg\r
- * which also contains such a launcher\r
- */\r
- \r
- public static void main(String[] args) throws JniException, NativeException {\r
- \r
- /* initialize the MSG simulation. Must be done before anything else (even logging). */\r
- Msg.init(args);\r
-\r
- if(args.length < 2) {\r
- \r
- Msg.info("Usage : Basic platform_file deployment_file");\r
- Msg.info("example : Basic basic_platform.xml basic_deployment.xml");\r
- System.exit(1);\r
- }\r
- \r
- /* specify a paje output file. */\r
- Msg.pajeOutput("basic.trace");\r
- \r
- /* construct the platform and deploy the application */\r
- Msg.createEnvironment(args[0]);\r
- Msg.deployApplication(args[1]);\r
- \r
- /* execute the simulation. */\r
- Msg.run();\r
- }\r
-}\r