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;
18 public static void main(String[] args) throws NativeException {
21 Msg.info("Usage : Migration platform_file");
22 Msg.info("example : Migration ../platforms/platform.xml");
25 /* Create the mutex */
28 /* construct the platform*/
29 Msg.createEnvironment(args[0]);
30 /* bypass deploymemt */
32 Policeman policeman = new Policeman("Boivin","policeman");
34 Emigrant emigrant = new Emigrant("Jacquelin","emigrant");
36 } catch (HostNotFoundException e){
37 Msg.error("Create processes failed!");
41 /* execute the simulation. */