host->setPstate(3);
XBT_INFO("Actually start the host");
- host->turnOn();
+ host->turn_on();
XBT_INFO("Wait 150s to simulate the boot time.");
simgrid::s4u::this_actor::sleep_for(150);
host->setPstate(previous_pstate);
XBT_INFO("Actually shutdown the host");
- host->turnOff();
+ host->turn_off();
}
static int monitor()
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();