2 * Copyright 2012 The SimGrid team. All right reserved.
4 * This program is free software; you can redistribute
5 * it and/or modify it under the terms of the license
6 * (GNU LGPL) which comes with this package.
11 import org.simgrid.msg.Msg;
12 import org.simgrid.msg.MsgException;
14 public class Bittorrent {
15 public static void main(String[] args) throws MsgException {
16 /* initialize the MSG simulation. Must be done before anything else (even logging). */
19 Msg.info("Usage : Bittorrent platform_file deployment_file");
20 Msg.info("example : Bittorrent platform.xml deployment.xml");
24 /* construct the platform and deploy the application */
25 Msg.createEnvironment(args[0]);
26 Msg.deployApplication(args[1]);
28 /* execute the simulation. */