-
-
-void SIMIX_host_set_pstate(smx_host_t host, int pstate_index) {
- xbt_assert((host != NULL), "Invalid parameters (simix host is NULL)");
-
- surf_workstation_set_pstate(host, pstate_index);
-}
-int SIMIX_host_get_pstate(smx_host_t host) {
- return surf_workstation_get_pstate(host);
-}
-
-double SIMIX_host_get_consumed_energy(smx_host_t host) {
- xbt_assert((host != NULL), "Invalid parameters (simix host is NULL)");
- return surf_workstation_get_consumed_energy(host);
-}
-
-int SIMIX_host_get_state(smx_host_t host){
- xbt_assert((host != NULL), "Invalid parameters (simix host is NULL)");
-
- return surf_resource_get_state(surf_workstation_resource_priv(host));
+double SIMIX_host_get_wattmax_at(sg_host_t host,int pstate) {
+ return surf_host_get_wattmax_at(host,pstate);