#include "src/simdag/simdag_private.h"
#include "simgrid/simdag.h"
-#include "simgrid/host.h"
+#include "simgrid/Host.hpp"
#include "xbt/dict.h"
#include "xbt/lib.h"
#include "xbt/sysdep.h"
*/
double SD_workstation_get_power(SD_workstation_t workstation)
{
- return sg_host_get_speed(workstation);
+ return workstation->getSpeed();
}
/**
* \brief Returns the amount of cores of a workstation
* \return the amount of cores of this workstation
*/
int SD_workstation_get_cores(SD_workstation_t workstation) {
- return sg_host_get_core(workstation);
+ return workstation->getCoreAmount();
}
/**