1 /* Copyright (c) 2012-2020. 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 process.migration;
8 import org.simgrid.msg.HostNotFoundException;
9 import org.simgrid.msg.Msg;
10 import org.simgrid.msg.Mutex;
11 import org.simgrid.msg.Process;
14 protected static Mutex mutex;
15 protected static Process processToMigrate = null;
18 throw new IllegalAccessError("Utility class");
21 public static void main(String[] args) {
24 Msg.info("Usage : Migration platform_file");
25 Msg.info("example : Migration ../platforms/platform.xml");
28 /* Create the mutex */
31 /* construct the platform*/
32 Msg.createEnvironment(args[0]);
33 /* bypass deploymemt */
35 Policeman policeman = new Policeman("Boivin","policeman");
37 Emigrant emigrant = new Emigrant("Jacquelin","emigrant");
39 processToMigrate = emigrant;
40 } catch (HostNotFoundException e){
41 Msg.error("Create processes failed!");
45 /* execute the simulation. */