Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
doxygen: fix some warnings
[simgrid.git] / examples / java / hostload / Main.java
1 /* Copyright (c) 2012-2018. The SimGrid Team. All rights reserved.          */
2
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. */
5
6 package hostload;
7
8 import org.simgrid.msg.Host;
9 import org.simgrid.msg.Msg;
10 import org.simgrid.msg.MsgException;
11
12 public class Main {
13   private Main() {
14     throw new IllegalAccessError("Utility class");
15   }
16
17   public static void main(String[] args) {
18     Msg.loadInit();
19     Msg.init(args); 
20
21     if (args.length < 1) {
22       Msg.info("Usage   : Load platform_file");
23       Msg.info("Usage  : Load ../platforms/small_platform.xml");
24       System.exit(1);
25     }
26     /* Construct the platform */
27     Msg.createEnvironment(args[0]);
28     new LoadRunner(Host.all()[0], "").start();
29
30     Msg.run();
31
32   }
33 }