Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add suspend example/test
[simgrid.git] / examples / suspend / Suspend.java
1 package suspend;
2
3 import org.simgrid.msg.Msg;
4
5 public class Suspend {
6         public static void main(String[] args) {
7                 /* initialize the MSG simulation. Must be done before anything else (even logging). */
8                 Msg.init(args);
9         if(args.length < 2) {
10                 Msg.info("Usage   : Suspend platform_file deployment_file");
11                 Msg.info("example : Suspend platform.xml deployment.xml");
12                 System.exit(1);
13         }
14                 /* construct the platform and deploy the application */
15                 Msg.createEnvironment(args[0]);
16                 Msg.deployApplication(args[1]);
17                         
18                 /*  execute the simulation. */
19         Msg.run();              
20         }
21 }