Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
start snake_casing s4u::Engine
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 21 Apr 2018 21:03:32 +0000 (23:03 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 23 Apr 2018 12:23:40 +0000 (14:23 +0200)
62 files changed:
examples/s4u/actor-create/s4u-actor-create.cpp
examples/s4u/actor-daemon/s4u-actor-daemon.cpp
examples/s4u/actor-join/s4u-actor-join.cpp
examples/s4u/actor-kill/s4u-actor-kill.cpp
examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp
examples/s4u/actor-migration/s4u-actor-migration.cpp
examples/s4u/actor-suspend/s4u-actor-suspend.cpp
examples/s4u/actor-yield/s4u-actor-yield.cpp
examples/s4u/app-bittorrent/s4u-bittorrent.cpp
examples/s4u/app-chainsend/s4u-app-chainsend.cpp
examples/s4u/app-masterworker/s4u-app-masterworker.cpp
examples/s4u/app-pingpong/s4u-app-pingpong.cpp
examples/s4u/app-token-ring/s4u-app-token-ring.cpp
examples/s4u/async-wait/s4u-async-wait.cpp
examples/s4u/async-waitall/s4u-async-waitall.cpp
examples/s4u/async-waitany/s4u-async-waitany.cpp
examples/s4u/cloud-capping/s4u-cloud-capping.cpp
examples/s4u/cloud-migration/s4u-cloud-migration.cpp
examples/s4u/cloud-simple/s4u-cloud-simple.cpp
examples/s4u/dht-chord/s4u-dht-chord.cpp
examples/s4u/dht-kademlia/s4u-dht-kademlia.cpp
examples/s4u/energy-boot/s4u-energy-boot.cpp
examples/s4u/energy-exec/s4u-energy-exec.cpp
examples/s4u/energy-link/s4u-energy-link.cpp
examples/s4u/energy-vm/s4u-energy-vm.cpp
examples/s4u/exec-async/s4u-exec-async.cpp
examples/s4u/exec-basic/s4u-exec-basic.cpp
examples/s4u/exec-dvfs/s4u-exec-dvfs.cpp
examples/s4u/exec-monitor/s4u-exec-monitor.cpp
examples/s4u/exec-ptask/s4u-exec-ptask.cpp
examples/s4u/exec-remote/s4u-exec-remote.cpp
examples/s4u/io-file-remote/s4u-io-file-remote.cpp
examples/s4u/io-file-system/s4u-io-file-system.cpp
examples/s4u/io-storage-raw/s4u-io-storage-raw.cpp
examples/s4u/mutex/s4u-mutex.cpp
examples/s4u/platform-properties/s4u-platform-properties.cpp
examples/s4u/plugin-hostload/s4u-plugin-hostload.cpp
examples/s4u/replay-comm/s4u-replay-comm.cpp
examples/s4u/replay-storage/s4u-replay-storage.cpp
examples/s4u/routing-get-clusters/s4u-routing-get-clusters.cpp
examples/s4u/trace-platform/s4u-trace-platform.cpp
include/simgrid/s4u/Engine.hpp
include/simgrid/simix.hpp
src/s4u/s4u_Engine.cpp
src/s4u/s4u_Host.cpp
src/s4u/s4u_Storage.cpp
src/simdag/sd_dotloader.cpp
src/simdag/sd_global.cpp
src/simgrid/host.cpp
src/simix/smx_deployment.cpp
src/smpi/internals/smpi_deployment.cpp
src/surf/plugins/host_energy.cpp
src/surf/sg_platf.cpp
src/surf/xml/simgrid.dtd
teshsuite/s4u/actor/actor.cpp
teshsuite/s4u/cloud-interrupt-migration/cloud-interrupt-migration.cpp
teshsuite/s4u/comm-pt2pt/comm-pt2pt.cpp
teshsuite/s4u/concurrent_rw/concurrent_rw.cpp
teshsuite/s4u/host_on_off_wait/host_on_off_wait.cpp
teshsuite/s4u/listen_async/listen_async.cpp
teshsuite/s4u/pid/pid.cpp
teshsuite/s4u/storage_client_server/storage_client_server.cpp

index 3e3d1e9..5b5c71b 100644 (file)
@@ -91,7 +91,7 @@ int main(int argc, char** argv)
   simgrid::s4u::Engine e(&argc, argv);
 
   /* Then you should load a platform file, describing your simulated platform */
-  e.loadPlatform("../../platforms/small_platform.xml");
+  e.load_platform("../../platforms/small_platform.xml");
 
   /* And now you have to ask SimGrid to actually start your actors.
    *
@@ -109,7 +109,7 @@ int main(int argc, char** argv)
 
   /* The third way to start your actors is to use a deployment file. */
   e.registerFunction<Receiver>("receiver");   // You first have to register the actor as with the second approach
-  e.loadDeployment("s4u-actor-create_d.xml"); // And then, you load the deployment file
+  e.load_deployment("s4u-actor-create_d.xml"); // And then, you load the deployment file
 
   /* Once every actors are started in the engine, the simulation can start */
   e.run();
index 9e83e95..9cb3028 100644 (file)
@@ -33,7 +33,7 @@ int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
 
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
   simgrid::s4u::Actor::create("worker", simgrid::s4u::Host::by_name("Boivin"), worker);
   simgrid::s4u::Actor::create("daemon", simgrid::s4u::Host::by_name("Tremblay"), my_daemon);
 
index e91264c..f159dd2 100644 (file)
@@ -52,7 +52,7 @@ int main(int argc, char* argv[])
   simgrid::s4u::Engine e(&argc, argv);
   xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
 
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::create("master", simgrid::s4u::Host::by_name("Tremblay"), master);
 
index 7bac6a7..3442fd2 100644 (file)
@@ -73,7 +73,7 @@ int main(int argc, char* argv[])
   simgrid::s4u::Engine e(&argc, argv);
   xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
 
-  e.loadPlatform(argv[1]); /* - Load the platform description */
+  e.load_platform(argv[1]); /* - Load the platform description */
   /* - Create and deploy killer process, that will create the victim actors  */
   simgrid::s4u::Actor::create("killer", simgrid::s4u::Host::by_name("Tremblay"), killer);
 
index 0390881..16b693c 100644 (file)
@@ -39,9 +39,9 @@ int main(int argc, char* argv[])
                        "\tExample: %s msg_platform.xml msg_deployment.xml\n",
              argv[0], argv[0]);
 
-  e.loadPlatform(argv[1]); /* - Load the platform description */
+  e.load_platform(argv[1]); /* - Load the platform description */
   e.registerFunction<sleeper>("sleeper");
-  e.loadDeployment(argv[2]); /* - Deploy the sleeper processes with explicit start/kill times */
+  e.load_deployment(argv[2]); /* - Deploy the sleeper processes with explicit start/kill times */
 
   e.run(); /* - Run the simulation */
 
index 60a7782..d6fb4c5 100644 (file)
@@ -62,7 +62,7 @@ int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
   xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::create("monitor", simgrid::s4u::Host::by_name("Boivin"), monitor);
   e.run();
index 757d2ee..57b7d0c 100644 (file)
@@ -69,8 +69,8 @@ int main(int argc, char* argv[])
   simgrid::s4u::Engine e(&argc, argv);
   xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
 
-  e.loadPlatform(argv[1]); /* - Load the platform description */
-  std::vector<simgrid::s4u::Host*> list = e.getAllHosts();
+  e.load_platform(argv[1]); /* - Load the platform description */
+  std::vector<simgrid::s4u::Host*> list = e.get_all_hosts();
   simgrid::s4u::Actor::create("dream_master", list.front(), dream_master);
 
   e.run(); /* - Run the simulation */
index 982bf18..8fc130c 100644 (file)
@@ -36,10 +36,10 @@ int main(int argc, char* argv[])
                        "\tExample: %s platform.xml deployment.xml\n",
              argv[0], argv[0]);
 
-  e.loadPlatform(argv[1]); /* - Load the platform description */
-  e.registerFunction<yielder>("yielder");
+  e.load_platform(argv[1]); /* - Load the platform description */
+  e.register_function<yielder>("yielder");
 
-  e.loadDeployment(argv[2]);
+  e.load_deployment(argv[2]);
 
   e.run(); /* - Run the simulation */
 
index b9b72d9..66bcd81 100644 (file)
@@ -17,17 +17,17 @@ int main(int argc, char* argv[])
   /* Check the arguments */
   xbt_assert(argc > 2, "Usage: %s platform_file deployment_file", argv[0]);
 
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   HostBittorrent::EXTENSION_ID = simgrid::s4u::Host::extension_create<HostBittorrent>();
 
-  std::vector<simgrid::s4u::Host*> list = simgrid::s4u::Engine::getInstance()->getAllHosts();
+  std::vector<simgrid::s4u::Host*> list = simgrid::s4u::Engine::getInstance()->get_all_hosts();
   for (auto const& host : list)
     host->extension_set(new HostBittorrent(host));
 
-  e.registerFunction<Tracker>("tracker");
-  e.registerFunction<Peer>("peer");
-  e.loadDeployment(argv[2]);
+  e.register_function<Tracker>("tracker");
+  e.register_function<Peer>("peer");
+  e.load_deployment(argv[2]);
 
   e.run();
 
index e465c20..0a81c22 100644 (file)
@@ -187,7 +187,7 @@ int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
 
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::create("broadcaster", simgrid::s4u::Host::by_name("node-0.acme.org"), broadcaster, 8, 256);
 
index 7265a80..47420c8 100644 (file)
@@ -89,10 +89,10 @@ int main(int argc, char* argv[])
                        "\tExample: %s msg_platform.xml msg_deployment.xml\n",
              argv[0], argv[0]);
 
-  e.loadPlatform(argv[1]); /** - Load the platform description */
-  e.registerFunction<Master>("master");
-  e.registerFunction<Worker>("worker"); /** - Register the function to be executed by the processes */
-  e.loadDeployment(argv[2]);            /** - Deploy the application */
+  e.load_platform(argv[1]); /** - Load the platform description */
+  e.register_function<Master>("master");
+  e.register_function<Worker>("worker"); /** - Register the function to be executed by the processes */
+  e.load_deployment(argv[2]);            /** - Deploy the application */
 
   e.run(); /** - Run the simulation */
 
index e09f35e..c94df9c 100644 (file)
@@ -56,7 +56,7 @@ int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
 
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
   std::vector<std::string> args;
   args.push_back("Jupiter");
   simgrid::s4u::Actor::create("pinger", simgrid::s4u::Host::by_name("Tremblay"), pinger, args);
index fec72b7..5bf49e8 100644 (file)
@@ -29,7 +29,7 @@ public:
                                   ia.what());
     }
     my_mailbox = simgrid::s4u::Mailbox::byName(std::to_string(rank));
-    if (rank + 1 == simgrid::s4u::Engine::getInstance()->getHostCount())
+    if (rank + 1 == simgrid::s4u::Engine::getInstance()->get_host_count())
       /* The last process, which sends the token back to rank 0 */
       neighbor_mailbox = simgrid::s4u::Mailbox::byName("0");
     else
@@ -56,11 +56,11 @@ int main(int argc, char** argv)
 {
   simgrid::s4u::Engine e(&argc, argv);
   xbt_assert(argc > 1, "Usage: %s platform.xml\n", argv[0]);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
-  XBT_INFO("Number of hosts '%zu'", e.getHostCount());
+  XBT_INFO("Number of hosts '%zu'", e.get_host_count());
   int id = 0;
-  std::vector<simgrid::s4u::Host*> list = e.getAllHosts();
+  std::vector<simgrid::s4u::Host*> list = e.get_all_hosts();
   for (auto const& host : list) {
     /* - Give a unique rank to each host and create a @ref relay_runner process on each */
     simgrid::s4u::Actor::create((std::to_string(id)).c_str(), host, RelayRunner());
index f675ce0..c8a344c 100644 (file)
@@ -106,8 +106,8 @@ int main(int argc, char *argv[])
   e.registerFunction<Sender>("sender");
   e.registerFunction<Receiver>("receiver");
 
-  e.loadPlatform(argv[1]);
-  e.loadDeployment(argv[2]);
+  e.load_platform(argv[1]);
+  e.load_deployment(argv[2]);
   e.run();
 
   return 0;
index 6e483c8..4d2c49c 100644 (file)
@@ -102,8 +102,8 @@ int main(int argc, char *argv[])
   e.registerFunction<Sender>("sender");
   e.registerFunction<Receiver>("receiver");
 
-  e.loadPlatform(argv[1]);
-  e.loadDeployment(argv[2]);
+  e.load_platform(argv[1]);
+  e.load_deployment(argv[2]);
   e.run();
 
   return 0;
index 6cb74a1..79d0ebf 100644 (file)
@@ -115,11 +115,11 @@ int main(int argc, char *argv[])
   xbt_assert(argc > 2, "Usage: %s platform_file deployment_file\n", argv[0]);
 
   simgrid::s4u::Engine e(&argc, argv);
-  e.registerFunction<Sender>("sender");
-  e.registerFunction<Receiver>("receiver");
+  e.register_function<Sender>("sender");
+  e.register_function<Receiver>("receiver");
 
-  e.loadPlatform(argv[1]);
-  e.loadDeployment(argv[2]);
+  e.load_platform(argv[1]);
+  e.load_deployment(argv[2]);
   e.run();
 
   return 0;
index 95bc71a..c0281b0 100644 (file)
@@ -249,7 +249,7 @@ int main(int argc, char* argv[])
   /* load the platform file */
   xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s ../platforms/small_platform.xml\n", argv[0], argv[0]);
 
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::create("master_", simgrid::s4u::Host::by_name("Fafard"), master_main);
 
index 51e747b..cfb9e08 100644 (file)
@@ -88,7 +88,7 @@ int main(int argc, char* argv[])
   sg_vm_live_migration_plugin_init();
 
   /* load the platform file */
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::create("master_", simgrid::s4u::Host::by_name("Fafard"), master_main);
 
index be899fb..ba2a67d 100644 (file)
@@ -210,7 +210,7 @@ int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
   sg_vm_live_migration_plugin_init();
-  e.loadPlatform(argv[1]); /* - Load the platform description */
+  e.load_platform(argv[1]); /* - Load the platform description */
 
   simgrid::s4u::Actor::create("master_", simgrid::s4u::Host::by_name("Fafard"), master_main);
 
index f0a2575..1b26134 100644 (file)
@@ -28,7 +28,7 @@ static void chord_init()
 
   HostChord::EXTENSION_ID = simgrid::s4u::Host::extension_create<HostChord>();
 
-  std::vector<simgrid::s4u::Host*> list = simgrid::s4u::Engine::getInstance()->getAllHosts();
+  std::vector<simgrid::s4u::Host*> list = simgrid::s4u::Engine::getInstance()->get_all_hosts();
   for (auto const& host : list)
     host->extension_set(new HostChord(host));
 }
@@ -62,12 +62,12 @@ int main(int argc, char* argv[])
     options++;
   }
 
-  e.loadPlatform(options[0]);
+  e.load_platform(options[0]);
 
   chord_init();
 
-  e.registerFunction<Node>("node");
-  e.loadDeployment(options[1]);
+  e.register_function<Node>("node");
+  e.load_deployment(options[1]);
 
   e.run();
 
index ac7c9d7..edf9c5c 100644 (file)
@@ -90,9 +90,9 @@ int main(int argc, char* argv[])
   xbt_assert(argc > 2, "Usage: %s platform_file deployment_file\n\tExample: %s cluster.xml dht-kademlia_d.xml\n",
              argv[0], argv[0]);
 
-  e.loadPlatform(argv[1]);
-  e.registerFunction("node", node);
-  e.loadDeployment(argv[2]);
+  e.load_platform(argv[1]);
+  e.register_function("node", node);
+  e.load_deployment(argv[2]);
 
   e.run();
 
index 0085dde..9d5aac8 100644 (file)
@@ -104,7 +104,7 @@ int main(int argc, char* argv[])
 
   xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s platform.xml\n", argv[0], argv[0]);
 
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
   simgrid::s4u::Actor::create("Boot Monitor", simgrid::s4u::Host::by_name("MyHost2"), monitor);
 
   e.run();
index b91d7ec..fa9833a 100644 (file)
@@ -70,7 +70,7 @@ int main(int argc, char* argv[])
 
   xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
 
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
   simgrid::s4u::Actor::create("dvfs_test", simgrid::s4u::Host::by_name("MyHost1"), dvfs);
 
   e.run();
index 2ebdf30..6de157c 100644 (file)
@@ -79,7 +79,7 @@ int main(int argc, char* argv[])
   xbt_assert(argc > 1, "\nUsage: %s platform_file [flowCount [datasize]]\n"
                        "\tExample: %s s4uplatform.xml \n",
              argv[0], argv[0]);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   /* prepare to launch the actors */
   std::vector<std::string> argSender;
index 6add343..ef487e9 100644 (file)
@@ -57,7 +57,7 @@ int main(int argc, char* argv[])
 
   xbt_assert(argc > 1, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
 
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::create("dvfs", simgrid::s4u::Host::by_name("MyHost1"), dvfs);
 
index 0f4c4a0..fd841f4 100644 (file)
@@ -21,7 +21,7 @@ static void test(double computation_amount, double priority)
 int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
   simgrid::s4u::Actor::create("test", simgrid::s4u::Host::by_name("Fafard"), test, 7.6296e+07, 1.0);
   simgrid::s4u::Actor::create("test", simgrid::s4u::Host::by_name("Fafard"), test, 7.6296e+07, 2.0);
 
index 8a9683c..4fd33fa 100644 (file)
@@ -43,7 +43,7 @@ int main(int argc, char* argv[])
   std::vector<std::string> args;
   xbt_assert(argc > 1, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
 
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::create("executor", simgrid::s4u::Host::by_name("Tremblay"), executor, args);
   simgrid::s4u::Actor::create("privileged", simgrid::s4u::Host::by_name("Tremblay"), privileged, args);
index 2c44125..b224cc9 100644 (file)
@@ -52,7 +52,7 @@ int main(int argc, char* argv[])
 
   xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
 
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::create("dvfs_test", simgrid::s4u::Host::by_name("MyHost1"), dvfs);
   simgrid::s4u::Actor::create("dvfs_test", simgrid::s4u::Host::by_name("MyHost2"), dvfs);
index 994ec37..3c18917 100644 (file)
@@ -39,7 +39,7 @@ static void executor()
 int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::create("executor", simgrid::s4u::Host::by_name("Fafard"), executor);
 
index 4da47fe..37fe2e2 100644 (file)
@@ -28,7 +28,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_energyptask, "Messages specific for this s4u ex
 static void runner()
 {
   /* Retrieve the list of all hosts as an array of hosts */
-  std::vector<simgrid::s4u::Host*> hosts = simgrid::s4u::Engine::getInstance()->getAllHosts();
+  std::vector<simgrid::s4u::Host*> hosts = simgrid::s4u::Engine::getInstance()->get_all_hosts();
   int hosts_count = hosts.size();
 
   XBT_INFO("First, build a classical parallel task, with 1 Gflop to execute on each node, "
@@ -95,7 +95,7 @@ int main(int argc, char* argv[])
   if (argc == 3 && argv[2][2] == 'e')
     sg_host_energy_plugin_init();
 
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   /* Pick a process, no matter which, from the platform file */
   simgrid::s4u::Actor::create("test", simgrid::s4u::Host::by_name("MyHost1"), runner);
index 292aefb..d9c43af 100644 (file)
@@ -47,7 +47,7 @@ static void wizard()
 int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
   simgrid::s4u::Actor::create("test", simgrid::s4u::Host::by_name("Fafard"), wizard);
 
   e.run();
index dca06d5..e7d1ee1 100644 (file)
@@ -51,9 +51,9 @@ int main(int argc, char** argv)
 {
   simgrid::s4u::Engine e(&argc, argv);
   sg_storage_file_system_init();
-  e.loadPlatform(argv[1]);
-  e.registerFunction("host", host);
-  e.loadDeployment(argv[2]);
+  e.load_platform(argv[1]);
+  e.register_function("host", host);
+  e.load_deployment(argv[2]);
   std::vector<simgrid::s4u::Storage*> allStorages = e.getAllStorages();
 
   for (auto const& s : allStorages) {
index 2e33319..6f0f84b 100644 (file)
@@ -94,7 +94,7 @@ int main(int argc, char** argv)
 {
   simgrid::s4u::Engine e(&argc, argv);
   sg_storage_file_system_init();
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
   simgrid::s4u::Actor::create("host", simgrid::s4u::Host::by_name("denise"), MyHost());
   e.run();
 
index caf074f..e73b588 100644 (file)
@@ -47,7 +47,7 @@ static void host()
 int main(int argc, char** argv)
 {
   simgrid::s4u::Engine e(&argc, argv);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::create("", simgrid::s4u::Host::by_name("denise"), host);
 
index 10b9120..d3dd4f4 100644 (file)
@@ -62,7 +62,7 @@ static void master()
 int main(int argc, char **argv)
 {
   simgrid::s4u::Engine e(&argc, argv);
-  e.loadPlatform("../../platforms/two_hosts.xml");
+  e.load_platform("../../platforms/two_hosts.xml");
   simgrid::s4u::Actor::create("main", simgrid::s4u::Host::by_name("Tremblay"), master);
   e.run();
 
index d04311c..a5c6c53 100644 (file)
@@ -96,21 +96,21 @@ static int bob(int argc, char* argv[])
 int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
-  e.registerFunction("alice", alice);
-  e.registerFunction("bob", bob);
-  e.registerFunction("carole", carole);
-  e.registerFunction("david", david);
+  e.register_function("alice", alice);
+  e.register_function("bob", bob);
+  e.register_function("carole", carole);
+  e.register_function("david", david);
 
   size_t totalHosts = sg_host_count();
 
   XBT_INFO("There are %zu hosts in the environment", totalHosts);
-  std::vector<simgrid::s4u::Host*> hosts = e.getAllHosts();
+  std::vector<simgrid::s4u::Host*> hosts = e.get_all_hosts();
   for (unsigned int i = 0; i < hosts.size(); i++)
     XBT_INFO("Host '%s' runs at %.0f flops/s", hosts[i]->get_cname(), hosts[i]->getSpeed());
 
-  e.loadDeployment(argv[2]);
+  e.load_deployment(argv[2]);
   e.run();
 
   return 0;
index 7a5087a..6345b2e 100644 (file)
@@ -83,7 +83,7 @@ int main(int argc, char* argv[])
   simgrid::s4u::Engine e(&argc, argv);
 
   xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::create("load_test", simgrid::s4u::Host::by_name("MyHost1"), execute_load_test);
   simgrid::s4u::Actor::create("change_speed", simgrid::s4u::Host::by_name("MyHost1"), change_speed);
index c9ee255..8605a10 100644 (file)
@@ -95,11 +95,11 @@ int main(int argc, char* argv[])
                        "\tExample: %s msg_platform.xml msg_deployment.xml ",
              argv[0], argv[0], argv[0]);
 
-  e.loadPlatform(argv[1]);
-  e.registerDefault(&simgrid::xbt::replay_runner);
+  e.load_platform(argv[1]);
+  e.register_default(&simgrid::xbt::replay_runner);
   e.registerFunction<Replayer>("p0");
   e.registerFunction<Replayer>("p1");
-  e.loadDeployment(argv[2]);
+  e.load_deployment(argv[2]);
 
   /*   Action registration */
   xbt_replay_action_register("compute", Replayer::compute);
index 9869aee..f1a76f2 100644 (file)
@@ -111,10 +111,10 @@ int main(int argc, char* argv[])
                        "\texample: %s platform.xml deployment.xml",
              argv[0], argv[0], argv[0]);
 
-  e.loadPlatform(argv[1]);
-  e.registerDefault(&simgrid::xbt::replay_runner);
+  e.load_platform(argv[1]);
+  e.register_default(&simgrid::xbt::replay_runner);
   e.registerFunction<Replayer>("p0");
-  e.loadDeployment(argv[2]);
+  e.load_deployment(argv[2]);
 
   /*   Action registration */
   xbt_replay_action_register("open", Replayer::open);
index 602c222..d10b415 100644 (file)
@@ -12,7 +12,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "Messages specific for this s4u example")
 int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   std::vector<simgrid::kernel::routing::ClusterZone*>* clusters =
       new std::vector<simgrid::kernel::routing::ClusterZone*>;
index a122ad2..e86426d 100644 (file)
@@ -13,7 +13,7 @@
 int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
   e.run();
   return 0;
 }
index 636f678..52224c1 100644 (file)
@@ -38,38 +38,38 @@ public:
    * The environment is either a XML file following the simgrid.dtd formalism, or a lua file.
    * Some examples can be found in the directory examples/platforms.
    */
-  void loadPlatform(const char* platf);
+  void load_platform(const char* platf);
 
   /** Registers the main function of an actor that will be launched from the deployment file */
-  void registerFunction(const char* name, int (*code)(int, char**));
+  void register_function(const char* name, int (*code)(int, char**));
 
   /** Registers a function as the default main function of actors
    *
    * It will be used as fallback when the function requested from the deployment file was not registered.
    * It is used for trace-based simulations (see examples/s4u/replay-comms and similar).
    */
-  void registerDefault(int (*code)(int, char**));
+  void register_default(int (*code)(int, char**));
 
   /** @brief Load a deployment file and launch the actors that it contains */
-  void loadDeployment(const char* deploy);
+  void load_deployment(const char* deploy);
 
 protected:
   friend s4u::Host;
   friend s4u::Storage;
-  void addHost(std::string name, simgrid::s4u::Host * host);
-  void delHost(std::string name);
-  void addStorage(std::string name, simgrid::s4u::Storage * storage);
-  void delStorage(std::string name);
+  void add_host(std::string name, simgrid::s4u::Host* host);
+  void del_host(std::string name);
+  void add_storage(std::string name, simgrid::s4u::Storage* storage);
+  void del_storage(std::string name);
 
 public:
-  simgrid::s4u::Host* hostByName(std::string name);
-  simgrid::s4u::Host* hostByNameOrNull(std::string name);
-  simgrid::s4u::Storage* storageByName(std::string name);
-  simgrid::s4u::Storage* storageByNameOrNull(std::string name);
+  simgrid::s4u::Host* host_by_name(std::string name);
+  simgrid::s4u::Host* host_by_name_or_null(std::string name);
+  simgrid::s4u::Storage* storage_by_name(std::string name);
+  simgrid::s4u::Storage* storage_by_name_or_null(std::string name);
 
-  size_t getHostCount();
-  void getHostList(std::vector<Host*> * whereTo);
-  std::vector<Host*> getAllHosts();
+  size_t get_host_count();
+  void get_host_list(std::vector<Host*>* whereTo);
+  std::vector<Host*> get_all_hosts();
 
   size_t getLinkCount();
   void getLinkList(std::vector<Link*> * list);
@@ -100,9 +100,9 @@ public:
   void netpointRegister(simgrid::kernel::routing::NetPoint * card);
   void netpointUnregister(simgrid::kernel::routing::NetPoint * card);
 
-  template <class F> void registerFunction(const char* name)
+  template <class F> void register_actor(const char* name)
   {
-    simgrid::simix::registerFunction(name, [](std::vector<std::string> args) {
+    simgrid::simix::register_function(name, [](std::vector<std::string> args) {
       return simgrid::simix::ActorCode([args] {
         F code(std::move(args));
         code();
@@ -110,9 +110,9 @@ public:
     });
   }
 
-  template <class F> void registerFunction(const char* name, F code)
+  template <class F> void register_actor(const char* name, F code)
   {
-    simgrid::simix::registerFunction(name, [code](std::vector<std::string> args) {
+    simgrid::simix::register_function(name, [code](std::vector<std::string> args) {
       return simgrid::simix::ActorCode([code, args] { code(std::move(args)); });
     });
   }
@@ -129,6 +129,53 @@ public:
    */
   void setConfig(std::string str);
 
+  XBT_ATTRIB_DEPRECATED_v323("Please use Engine::load_platform()") void loadPlatform(const char* platf)
+  {
+    load_platform(platf);
+  }
+  XBT_ATTRIB_DEPRECATED_v323("Please use Engine::register_function()") void registerFunction(const char* name,
+                                                                                             int (*code)(int, char**))
+  {
+    register_function(name, code);
+  }
+  XBT_ATTRIB_DEPRECATED_v323("Please use Engine::register_default()") void registerDefault(int (*code)(int, char**))
+  {
+    register_default(code);
+  }
+  XBT_ATTRIB_DEPRECATED_v323("Please use Engine::load_deployment()") void loadDeployment(const char* deploy)
+  {
+    load_deployment(deploy);
+  }
+  XBT_ATTRIB_DEPRECATED_v323("Please use Engine::host_by_name()") simgrid::s4u::Host* hostByName(std::string name)
+  {
+    return host_by_name(name);
+  }
+  XBT_ATTRIB_DEPRECATED_v323("Please use Engine::host_by_name_or_null()") simgrid::s4u::Host* hostByNameOrNull(
+      std::string name)
+  {
+    return host_by_name_or_null(name);
+  }
+  XBT_ATTRIB_DEPRECATED_v323("Please use Engine::storage_by_name()") simgrid::s4u::Storage* storageByName(
+      std::string name)
+  {
+    return storage_by_name(name);
+  }
+  XBT_ATTRIB_DEPRECATED_v323("Please use Engine::storage_by_name_or_null()") simgrid::s4u::Storage* storageByNameOrNull(
+      std::string name)
+  {
+    return storage_by_name_or_null(name);
+  }
+
+  XBT_ATTRIB_DEPRECATED_v323("Please use Engine::get_host_count()") size_t getHostCount() { return get_host_count(); }
+  XBT_ATTRIB_DEPRECATED_v323("Please use Engine::get_host_list()") void getHostList(std::vector<Host*>* whereTo)
+  {
+    get_host_list(whereTo);
+  }
+  XBT_ATTRIB_DEPRECATED_v323("Please use Engine::get_all_hosts()") std::vector<Host*> getAllHosts()
+  {
+    return get_all_hosts();
+  }
+
   simgrid::kernel::EngineImpl* pimpl;
 
 private:
index 172ebe9..ff4625b 100644 (file)
@@ -77,7 +77,7 @@ typedef std::function<void()> ActorCode;
 // Create ActorCode based on argv:
 typedef std::function<ActorCode(std::vector<std::string> args)> ActorCodeFactory;
 
-XBT_PUBLIC void registerFunction(const char* name, ActorCodeFactory factory);
+XBT_PUBLIC void register_function(const char* name, ActorCodeFactory factory);
 
 /** These functions will be called when we detect a deadlock: any remaining process is locked on an action
  *
index 5374db3..8d1a71e 100644 (file)
@@ -66,25 +66,25 @@ double Engine::getClock()
   return SIMIX_get_clock();
 }
 
-void Engine::loadPlatform(const char* platf)
+void Engine::load_platform(const char* platf)
 {
   SIMIX_create_environment(platf);
 }
 
-void Engine::registerFunction(const char* name, int (*code)(int, char**))
+void Engine::register_function(const char* name, int (*code)(int, char**))
 {
   SIMIX_function_register(name, code);
 }
-void Engine::registerDefault(int (*code)(int, char**))
+void Engine::register_default(int (*code)(int, char**))
 {
   SIMIX_function_register_default(code);
 }
-void Engine::loadDeployment(const char* deploy)
+void Engine::load_deployment(const char* deploy)
 {
   SIMIX_launch_application(deploy);
 }
 /** @brief Returns the amount of hosts in the platform */
-size_t Engine::getHostCount()
+size_t Engine::get_host_count()
 {
   return pimpl->hosts_.size();
 }
@@ -92,15 +92,15 @@ size_t Engine::getHostCount()
  *  @deprecated Please prefer Engine::getAllHosts()
  */
 void XBT_ATTRIB_DEPRECATED_v322(
-    "Engine::getHostList() is deprecated in favor of Engine::getAllHosts(). Please switch before v3.22")
-    Engine::getHostList(std::vector<Host*>* list)
+    "Engine::getHostList() is deprecated in favor of Engine::get_all_hosts(). Please switch before v3.22")
+    Engine::get_host_list(std::vector<Host*>* list)
 {
   for (auto const& kv : pimpl->hosts_)
     list->push_back(kv.second);
 }
 
 /** @brief Returns the list of all hosts found in the platform */
-std::vector<Host*> Engine::getAllHosts()
+std::vector<Host*> Engine::get_all_hosts()
 {
   std::vector<Host*> res;
   for (auto const& kv : pimpl->hosts_)
@@ -108,22 +108,22 @@ std::vector<Host*> Engine::getAllHosts()
   return res;
 }
 
-void Engine::addHost(std::string name, simgrid::s4u::Host* host)
+void Engine::add_host(std::string name, simgrid::s4u::Host* host)
 {
   pimpl->hosts_[name] = host;
 }
 
-void Engine::delHost(std::string name)
+void Engine::del_host(std::string name)
 {
   pimpl->hosts_.erase(name);
 }
 
-simgrid::s4u::Host* Engine::hostByName(std::string name)
+simgrid::s4u::Host* Engine::host_by_name(std::string name)
 {
   return pimpl->hosts_.at(name); // Will raise a std::out_of_range if the host does not exist
 }
 
-simgrid::s4u::Host* Engine::hostByNameOrNull(std::string name)
+simgrid::s4u::Host* Engine::host_by_name_or_null(std::string name)
 {
   auto host = pimpl->hosts_.find(name);
   return host == pimpl->hosts_.end() ? nullptr : host->second;
@@ -138,23 +138,23 @@ std::vector<Storage*> Engine::getAllStorages()
   return res;
 }
 
-simgrid::s4u::Storage* Engine::storageByName(std::string name)
+simgrid::s4u::Storage* Engine::storage_by_name(std::string name)
 {
   return pimpl->storages_.at(name); // Will raise a std::out_of_range if the host does not exist
 }
 
-simgrid::s4u::Storage* Engine::storageByNameOrNull(std::string name)
+simgrid::s4u::Storage* Engine::storage_by_name_or_null(std::string name)
 {
   auto storage = pimpl->storages_.find(name);
   return storage == pimpl->storages_.end() ? nullptr : storage->second;
 }
 
-void Engine::addStorage(std::string name, simgrid::s4u::Storage* storage)
+void Engine::add_storage(std::string name, simgrid::s4u::Storage* storage)
 {
   pimpl->storages_[name] = storage;
 }
 
-void Engine::delStorage(std::string name)
+void Engine::del_storage(std::string name)
 {
   pimpl->storages_.erase(name);
 }
index f65d3f0..7ab0c6f 100644 (file)
@@ -30,7 +30,7 @@ simgrid::xbt::signal<void(Host&)> Host::onSpeedChange;
 Host::Host(const char* name) : name_(name)
 {
   xbt_assert(Host::by_name_or_null(name) == nullptr, "Refusing to create a second host named '%s'.", name);
-  Engine::getInstance()->addHost(std::string(name_), this);
+  Engine::getInstance()->add_host(std::string(name_), this);
   new simgrid::surf::HostImpl(this);
 }
 
@@ -58,26 +58,26 @@ void Host::destroy()
   if (not currentlyDestroying_) {
     currentlyDestroying_ = true;
     onDestruction(*this);
-    Engine::getInstance()->delHost(std::string(name_));
+    Engine::getInstance()->del_host(std::string(name_));
     delete this;
   }
 }
 
 Host* Host::by_name(std::string name)
 {
-  return Engine::getInstance()->hostByName(name);
+  return Engine::getInstance()->host_by_name(name);
 }
 Host* Host::by_name(const char* name)
 {
-  return Engine::getInstance()->hostByName(std::string(name));
+  return Engine::getInstance()->host_by_name(std::string(name));
 }
 Host* Host::by_name_or_null(const char* name)
 {
-  return Engine::getInstance()->hostByNameOrNull(std::string(name));
+  return Engine::getInstance()->host_by_name_or_null(std::string(name));
 }
 Host* Host::by_name_or_null(std::string name)
 {
-  return Engine::getInstance()->hostByNameOrNull(name);
+  return Engine::getInstance()->host_by_name_or_null(name);
 }
 
 Host* Host::current()
index 4179d0c..c26d4a5 100644 (file)
@@ -29,12 +29,12 @@ void XBT_ATTRIB_DEPRECATED_v322(
 
 Storage::Storage(std::string name, surf::StorageImpl* pimpl) : pimpl_(pimpl), name_(name)
 {
-  simgrid::s4u::Engine::getInstance()->addStorage(name, this);
+  simgrid::s4u::Engine::getInstance()->add_storage(name, this);
 }
 
 Storage* Storage::byName(std::string name)
 {
-  return Engine::getInstance()->storageByNameOrNull(name);
+  return Engine::getInstance()->storage_by_name_or_null(name);
 }
 
 const std::string& Storage::get_name() const
index db121d7..ddea1a7 100644 (file)
@@ -213,7 +213,7 @@ xbt_dynar_t SD_dotload_generic(const char* filename, bool sequential, bool sched
 
   if(schedule){
     if (schedule_success) {
-      std::vector<simgrid::s4u::Host*> hosts = simgrid::s4u::Engine::getInstance()->getAllHosts();
+      std::vector<simgrid::s4u::Host*> hosts = simgrid::s4u::Engine::getInstance()->get_all_hosts();
 
       for (auto const& elm : computers) {
         SD_task_t previous_task = nullptr;
index 81ed28a..81682d4 100644 (file)
@@ -200,7 +200,7 @@ void SD_config(const char *key, const char *value){
  */
 void SD_create_environment(const char *platform_file)
 {
-  simgrid::s4u::Engine::getInstance()->loadPlatform(platform_file);
+  simgrid::s4u::Engine::getInstance()->load_platform(platform_file);
 
   XBT_DEBUG("Host number: %zu, link number: %d", sg_host_count(), sg_link_count());
 #if SIMGRID_HAVE_JEDULE
index f4a8901..ad422c6 100644 (file)
@@ -21,7 +21,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sg_host, sd, "Logging specific to sg_hosts");
 
 size_t sg_host_count()
 {
-  return simgrid::s4u::Engine::getInstance()->getHostCount();
+  return simgrid::s4u::Engine::getInstance()->get_host_count();
 }
 /** @brief Returns the host list
  *
@@ -35,7 +35,7 @@ size_t sg_host_count()
  */
 sg_host_t *sg_host_list() {
   xbt_assert(sg_host_count() > 0, "There is no host!");
-  std::vector<simgrid::s4u::Host*> hosts = simgrid::s4u::Engine::getInstance()->getAllHosts();
+  std::vector<simgrid::s4u::Host*> hosts = simgrid::s4u::Engine::getInstance()->get_all_hosts();
 
   sg_host_t* res = (sg_host_t*)malloc(sizeof(sg_host_t) * hosts.size());
   memcpy(res, hosts.data(), sizeof(sg_host_t) * hosts.size());
@@ -73,7 +73,7 @@ xbt_dynar_t sg_hosts_as_dynar()
 {
   xbt_dynar_t res = xbt_dynar_new(sizeof(sg_host_t),nullptr);
 
-  std::vector<simgrid::s4u::Host*> list = simgrid::s4u::Engine::getInstance()->getAllHosts();
+  std::vector<simgrid::s4u::Host*> list = simgrid::s4u::Engine::getInstance()->get_all_hosts();
 
   for (auto const& host : list) {
     if (host && host->pimpl_netpoint && host->pimpl_netpoint->is_host())
index d2ff0f1..8e11f4a 100644 (file)
@@ -146,7 +146,7 @@ void SIMIX_process_set_function(const char* process_host, const char* process_fu
 namespace simgrid {
 namespace simix {
 
-void registerFunction(const char* name, ActorCodeFactory factory)
+void register_function(const char* name, ActorCodeFactory factory)
 {
   simix_global->registered_functions[name] = std::move(factory);
 }
index 4e05a95..a3dbcef 100644 (file)
@@ -58,7 +58,7 @@ void SMPI_app_instance_register(const char *name, xbt_main_func_t code, int num_
   static int already_called = 0;
   if (not already_called) {
     already_called = 1;
-    std::vector<simgrid::s4u::Host*> list = simgrid::s4u::Engine::getInstance()->getAllHosts();
+    std::vector<simgrid::s4u::Host*> list = simgrid::s4u::Engine::getInstance()->get_all_hosts();
     for (auto const& host : list) {
       host->extension_set(new simgrid::smpi::SmpiHost(host));
     }
index 0b3ca1d..7bf554e 100644 (file)
@@ -424,7 +424,7 @@ static void onHostDestruction(simgrid::s4u::Host& host)
 
 static void onSimulationEnd()
 {
-  std::vector<simgrid::s4u::Host*> hosts = simgrid::s4u::Engine::getInstance()->getAllHosts();
+  std::vector<simgrid::s4u::Host*> hosts = simgrid::s4u::Engine::getInstance()->get_all_hosts();
 
   double total_energy      = 0.0; // Total energy consumption (whole platform)
   double used_hosts_energy = 0.0; // Energy consumed by hosts that computed something
@@ -474,7 +474,7 @@ void sg_host_energy_plugin_init()
 void sg_host_energy_update_all()
 {
   simgrid::simix::kernelImmediate([]() {
-    std::vector<simgrid::s4u::Host*> list = simgrid::s4u::Engine::getInstance()->getAllHosts();
+    std::vector<simgrid::s4u::Host*> list = simgrid::s4u::Engine::getInstance()->get_all_hosts();
     for (auto const& host : list)
       if (dynamic_cast<simgrid::s4u::VirtualMachine*>(host) == nullptr) // Ignore virtual machines
         host->extension<HostEnergy>()->update();
index 3f290e7..fae502c 100644 (file)
@@ -391,7 +391,7 @@ void sg_platf_new_mount(simgrid::kernel::routing::MountCreationArgs* mount)
 
   if (mount_list.empty())
     XBT_DEBUG("Create a Mount list for %s", A_surfxml_host_id);
-  mount_list.insert({mount->name, simgrid::s4u::Engine::getInstance()->storageByName(mount->storageId)->getImpl()});
+  mount_list.insert({mount->name, simgrid::s4u::Engine::getInstance()->storage_by_name(mount->storageId)->getImpl()});
 }
 
 void sg_platf_new_route(simgrid::kernel::routing::RouteCreationArgs* route)
@@ -414,7 +414,7 @@ void sg_platf_new_actor(simgrid::kernel::routing::ActorCreationArgs* actor)
     std::string msg = std::string("Cannot create actor '") + actor->function + "': host '" + actor->host +
                       "' does not exist\nExisting hosts: '";
 
-    std::vector<simgrid::s4u::Host*> list = simgrid::s4u::Engine::getInstance()->getAllHosts();
+    std::vector<simgrid::s4u::Host*> list = simgrid::s4u::Engine::getInstance()->get_all_hosts();
 
     for (auto const& host : list) {
       msg += host->get_name();
index c28d761..05de4d7 100644 (file)
@@ -201,21 +201,21 @@ To upgrade your files, use the tool simgrid_update_xml
 <!ELEMENT route (link_ctn*)>
 <!ATTLIST route src CDATA #REQUIRED>
 <!ATTLIST route dst CDATA #REQUIRED>
-<!ATTLIST route symmetrical (YES|NO) "YES">
+<!ATTLIST route symmetrical (YES|NO|yes|no) "YES">
 
 <!ELEMENT ASroute (link_ctn*)>
 <!ATTLIST ASroute src CDATA #REQUIRED>
 <!ATTLIST ASroute dst CDATA #REQUIRED>
 <!ATTLIST ASroute gw_src CDATA #REQUIRED>
 <!ATTLIST ASroute gw_dst CDATA #REQUIRED>
-<!ATTLIST ASroute symmetrical (YES|NO) "YES">
+<!ATTLIST ASroute symmetrical (YES|NO|yes|no) "YES">
 
 <!ELEMENT zoneRoute (link_ctn*)>
 <!ATTLIST zoneRoute src CDATA #REQUIRED>
 <!ATTLIST zoneRoute dst CDATA #REQUIRED>
 <!ATTLIST zoneRoute gw_src CDATA #REQUIRED>
 <!ATTLIST zoneRoute gw_dst CDATA #REQUIRED>
-<!ATTLIST zoneRoute symmetrical (YES|NO) "YES">
+<!ATTLIST zoneRoute symmetrical (YES|NO|yes|no) "YES">
 
 <!ELEMENT link_ctn EMPTY>
 <!ATTLIST link_ctn id CDATA #REQUIRED>
index 9b47529..c305602 100644 (file)
@@ -55,7 +55,7 @@ static void master()
 int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::create("master", simgrid::s4u::Host::by_name("Tremblay"), master);
   simgrid::s4u::Actor::create("worker", simgrid::s4u::Host::by_name("Tremblay"), worker);
index 746e06e..94deef2 100644 (file)
@@ -59,7 +59,7 @@ int main(int argc, char* argv[])
   sg_vm_live_migration_plugin_init();
 
   /* load the platform file */
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::create("master_", simgrid::s4u::Host::by_name("Fafard"), master_main);
 
index 275712c..c953820 100644 (file)
@@ -170,7 +170,7 @@ int main(int argc, char* argv[])
   if (argc < 2)
     usage(argv[0], specSend.c_str(), specRecv.c_str());
 
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   if (argc >= 3) {
     argSend.clear();
index 8378e8e..772c705 100644 (file)
@@ -30,7 +30,7 @@ static void host()
 int main(int argc, char** argv)
 {
   simgrid::s4u::Engine e(&argc, argv);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   for (int i = 0; i < 5; i++)
     simgrid::s4u::Actor::create("host", simgrid::s4u::Host::by_name("bob"), host);
index 4d3e71e..0c8df39 100644 (file)
@@ -29,7 +29,7 @@ static void worker()
 int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::create("master", simgrid::s4u::Host::by_name("Tremblay"), master);
   simgrid::s4u::Actor::create("worker", simgrid::s4u::Host::by_name("Jupiter"), worker);
index acca8f8..c9ca453 100644 (file)
@@ -46,7 +46,7 @@ static void server()
 int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::create("test", simgrid::s4u::Host::by_name("Tremblay"), server);
 
index 07b0f61..b50bdbc 100644 (file)
@@ -40,7 +40,7 @@ static void killall()
 int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::kill_all();
 
index 4a87601..b70d087 100644 (file)
@@ -157,7 +157,7 @@ int main(int argc, char* argv[])
   simgrid::s4u::Engine e(&argc, argv);
   sg_storage_file_system_init();
   xbt_assert(argc == 2, "Usage: %s platform_file\n", argv[0]);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   simgrid::s4u::Actor::create("server", simgrid::s4u::Host::by_name("alice"), server);
   simgrid::s4u::Actor::create("client", simgrid::s4u::Host::by_name("bob"), client);