Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Energy, onHostDestruction: ensured ptr existence
[simgrid.git] / examples / java / startKillTime / StartKillTime.java
1 /* Copyright (c) 2006-2014. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 package startKillTime;
8 import org.simgrid.msg.Msg;
9 import org.simgrid.msg.NativeException;
10  
11 public class StartKillTime  {
12
13    /* This only contains the launcher. If you do nothing more than than you can run 
14     *   java org.simgrid.msg.Msg
15     * which also contains such a launcher
16     */
17     
18     public static void main(String[] args) throws NativeException {     
19                 /* initialize the MSG simulation. Must be done before anything else (even logging). */
20                 Msg.init(args);
21                 if(args.length < 2) {
22                         Msg.info("Usage   : StartKilltime platform_file deployment_file");
23                 Msg.info("example : StartKilltime platform.xml startKilltime.xml");
24                 System.exit(1);
25                 }
26         
27                 /* construct the platform and deploy the application */
28                 Msg.createEnvironment(args[0]);
29                 Msg.deployApplication(args[1]);
30                 
31                 /*  execute the simulation. */
32             Msg.run();
33     }
34 }