1 /* Copyright (c) 2006-2014. The SimGrid Team.
2 * All rights reserved. */
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. */
7 package app.masterworker;
11 import org.simgrid.msg.Msg;
14 public static final int TASK_COMP_SIZE = 10000000;
15 public static final int TASK_COMM_SIZE = 10000000;
17 throw new IllegalAccessError("Utility class");
20 public static void main(String[] args) {
21 /* initialize the MSG simulation. Must be done before anything else (even logging). */
24 String platf = args.length > 1 ? args[0] : "../platforms/small_platform.xml";
25 String deploy = args.length > 1 ? args[1] : "app/masterworker/masterworker.xml";
27 Msg.verb("Platform: "+platf+"; Deployment:"+deploy+"; Current directory: "+new File(".").getAbsolutePath());
29 /* construct the platform and deploy the application */
30 Msg.createEnvironment(platf);
31 Msg.deployApplication(deploy);
32 /* execute the simulation. */