1 package sleep_host_off;
3 import org.simgrid.msg.Host;
4 import org.simgrid.msg.HostNotFoundException;
5 import org.simgrid.msg.Msg;
6 import org.simgrid.msg.NativeException;
10 public static void main(String[] args) throws NativeException {
11 /* Init. internal values */
14 if (args.length < 2) {
15 Msg.info("Usage : Main platform_file.xml dployment_file.xml");
19 /* construct the platform and deploy the application */
20 Msg.createEnvironment(args[0]);
21 Msg.deployApplication(args[1]);
25 } catch (Exception e){
26 System.out.println("Bye bye the program crashes !");