1 /* Copyright (c) 2016. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
8 import org.simgrid.msg.Host;
9 import org.simgrid.msg.HostNotFoundException;
10 import org.simgrid.msg.Msg;
11 import org.simgrid.msg.NativeException;
15 public static void main(String[] args) throws NativeException, HostNotFoundException {
16 /* Init. internal values */
20 if (args.length < 1) {
21 Msg.info("Usage: Main platform_file.xml");
25 /* construct the platform */
26 Msg.createEnvironment(args[0]);
28 /* Create and start a runner for the experiment */
29 new EnergyVMRunner(Host.all()[0],"energy VM runner",null).start();