Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
85f512a80cbb905bc93a35faac0dc4cbea90e6cc
[simgrid.git] / examples / s4u / launching / s4u_launching.cpp
1 /* Copyright (c) 2006-2016. 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 #include <xbt/sysdep.h>
7 #include <simgrid/s4u.hpp>
8
9 #include "s4u_launching.h"
10
11 int main(int argc, char **argv) {
12   simgrid::s4u::Engine *e = new simgrid::s4u::Engine(&argc,argv);
13   e->loadPlatform("../../platforms/two_hosts.xml");
14   simgrid::s4u::Actor::createActor("worker", simgrid::s4u::Host::by_name("Tremblay"), Worker());
15   simgrid::s4u::Actor::createActor("master", simgrid::s4u::Host::by_name("Jupiter"), Master());
16   e->run();
17   return 0;
18 }