-
-Host::~Host()
-{
-}
-
-/** @brief Get the speed of the cpu associated to a host */
-double Host::getSpeed() {
- return p_cpu->getSpeed(1.0);
-}
-/** @brief Returns the number of core of the processor. */
-int Host::getCoreAmount() {
- return p_cpu->getCore();
-}
-
-Host* Host::by_name_or_null(const char* name)
-{
- return (Host*) xbt_dict_get_or_null(host_list, name);
+/** @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->set_pstate(pstate);