1 /* Copyright (c) 2012-2014, 2016. 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.Msg;
9 import org.simgrid.msg.Mutex;
10 import org.simgrid.msg.Process;
11 import org.simgrid.msg.NativeException;
12 import org.simgrid.msg.HostNotFoundException;
15 protected static Mutex mutex;
16 protected static Process processToMigrate = null;
19 throw new IllegalAccessError("Utility class");
22 public static void main(String[] args) throws NativeException {
25 Msg.info("Usage : Migration platform_file");
26 Msg.info("example : Migration ../platforms/platform.xml");
29 /* Create the mutex */
32 /* construct the platform*/
33 Msg.createEnvironment(args[0]);
34 /* bypass deploymemt */
36 Policeman policeman = new Policeman("Boivin","policeman");
38 Emigrant emigrant = new Emigrant("Jacquelin","emigrant");
40 } catch (HostNotFoundException e){
41 Msg.error("Create processes failed!");
45 /* execute the simulation. */