Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[s4u] Host snake_case
[simgrid.git] / src / simgrid / host.cpp
index dcde167..7b650aa 100644 (file)
@@ -129,7 +129,7 @@ double sg_host_get_available_speed(sg_host_t host){
  *  @return 1 if the host is active or 0 if it has crashed.
  */
 int sg_host_is_on(sg_host_t host) {
-       return host->isOn();
+       return host->is_on();
 }
 
 /** @brief Returns the number of power states for a host.
@@ -137,7 +137,7 @@ int sg_host_is_on(sg_host_t host) {
  *  See also @ref SURF_plugin_energy.
  */
 int sg_host_get_nb_pstates(sg_host_t host) {
-  return host->getNbPStates();
+  return host->pstates_count();
 }
 
 /** @brief Gets the pstate at which that host currently runs.
@@ -145,18 +145,18 @@ int sg_host_get_nb_pstates(sg_host_t host) {
  *  See also @ref SURF_plugin_energy.
  */
 int sg_host_get_pstate(sg_host_t host) {
-  return host->getPState();
+  return host->pstate();
 }
 /** @brief Sets the pstate at which that host should run.
  *
  *  See also @ref SURF_plugin_energy.
  */
 void sg_host_set_pstate(sg_host_t host,int pstate) {
-  host->setPState(pstate);
+  host->set_pstate(pstate);
 }
 
 /** @brief Get the properties of an host */
 xbt_dict_t sg_host_get_properties(sg_host_t host) {
-  return host->getProperties();
+  return host->properties();
 }