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