Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Renamed basic example to "masterslave" (more accurate)
[simgrid.git] / examples / async / AsyncTest.java
index 1e14632..f8abd33 100644 (file)
@@ -22,23 +22,16 @@ public class AsyncTest {
                /* initialize the MSG simulation. Must be done before anything else (even logging). */
                Msg.init(args);
 
-               if(args.length == 0) {
-                       Msg.createEnvironment("async_platform.xml");
-                       Msg.deployApplication("async_deployment.xml");
-
-               } else if (args.length < 2) {
-
-
+           if (args.length < 2) {              
                        Msg.info("Usage   : Async platform_file deployment_file");
-                       Msg.info("example : Async async_platform.xml async_deployment.xml");
-                       System.exit(1);
-               } else {
-
-                       /* construct the platform and deploy the application */
-                       Msg.createEnvironment(args[0]);
-                       Msg.deployApplication(args[1]);
+                       Msg.info("example : Async basic_platform.xml basic_deployment.xml");
+                       System.exit(1); 
                }
 
+               /* construct the platform and deploy the application */
+               Msg.createEnvironment(args[0]);
+               Msg.deployApplication(args[1]);
+
                /*  execute the simulation. */
                Msg.run();
        }