2 * Copyright (c) 2006-2013. The SimGrid Team.
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.
13 import org.simgrid.msg.Msg;
14 import org.simgrid.msg.NativeException;
16 public class Masterslave {
17 public static final int TASK_COMP_SIZE = 10000000;
18 public static final int TASK_COMM_SIZE = 10000000;
19 /* This only contains the launcher. If you do nothing more than than you can run
20 * java simgrid.msg.Msg
21 * which also contains such a launcher
24 public static void main(String[] args) throws NativeException {
25 /* initialize the MSG simulation. Must be done before anything else (even logging). */
28 String platf = args.length > 1 ? args[0] : "examples/java/platform.xml";
29 String deploy = args.length > 1 ? args[1] : "examples/java/masterslave/masterslaveDeployment.xml";
31 Msg.verb("Platform: "+platf+"; Deployment:"+deploy+"; Current directory: "+new File(".").getAbsolutePath());
33 /* construct the platform and deploy the application */
34 Msg.createEnvironment(platf);
35 Msg.deployApplication(deploy);
36 /* execute the simulation. */