- xbt_assert(args.size() == 4, "The relay_runner function does not accept any parameter from the XML deployment file");
- id = std::stoi(args[1]);
- sleep_start_time = std::stod(args[2]);
- sleep_test_time = std::stod(args[3]);
- XBT_INFO("sleep_start_time : %f , sleep_test_time : %f", sleep_start_time, sleep_test_time);
- std::string mbox_name = std::string("receiver-") + std::to_string(id);
- mbox = simgrid::s4u::Mailbox::byName(mbox_name);
+ xbt_assert(args.size() == 2, "The receiver function takes a unique parameter from the XML deployment file");
+ std::string mbox_name = std::string("receiver-") + args[1];
+ mbox = simgrid::s4u::Mailbox::byName(mbox_name);