Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Dig through git history, and update copyright lines.
[simgrid.git] / examples / java / suspend / Suspend.java
1 /*
2  * Copyright (c) 2006-2013. The SimGrid Team.
3  * All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the license (GNU LGPL) which comes with this package. 
7  */
8 package suspend;
9
10 import org.simgrid.msg.Msg;
11
12 public class Suspend {
13         public static void main(String[] args) {
14                 /* initialize the MSG simulation. Must be done before anything else (even logging). */
15                 Msg.init(args);
16         if(args.length < 2) {
17                 Msg.info("Usage   : Suspend platform_file deployment_file");
18                 Msg.info("example : Suspend platform.xml deployment.xml");
19                 System.exit(1);
20         }
21                 /* construct the platform and deploy the application */
22                 Msg.createEnvironment(args[0]);
23                 Msg.deployApplication(args[1]);
24                         
25                 /*  execute the simulation. */
26         Msg.run();              
27         }
28 }