1 /* Copyright (c) 2012-2019. 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 energy.consumption;
9 import org.simgrid.msg.Msg;
10 import org.simgrid.msg.MsgException;
14 throw new IllegalAccessError("Utility class");
17 public static void main(String[] args) throws MsgException {
21 if (args.length < 1) {
22 Msg.info("Usage : Energy platform_file");
23 Msg.info("Usage : Energy ../platforms/energy_platform.xml");
26 /* Construct the platform */
27 Msg.createEnvironment(args[0]);
28 /* Instantiate a process */
29 new EnergyConsumer("MyHost1","energyConsumer").start();
30 /* Execute the simulation */