3 import org.simgrid.msg.Msg;
4 import org.simgrid.msg.MsgException;
6 public class Bittorrent {
7 public static void main(String[] args) throws MsgException {
8 /* initialize the MSG simulation. Must be done before anything else (even logging). */
11 Msg.info("Usage : Bittorrent platform_file deployment_file");
12 Msg.info("example : Bittorrent platform.xml deployment.xml");
16 /* construct the platform and deploy the application */
17 Msg.createEnvironment(args[0]);
18 Msg.deployApplication(args[1]);
20 /* execute the simulation. */