+/** Retrieve the property value (or NULL if not set) */
+const char*Host::property(const char*key) {
+ simgrid::surf::HostImpl* surf_host = this->extension<simgrid::surf::HostImpl>();
+ return surf_host->getProperty(key);
+}
+void Host::setProperty(const char*key, const char *value){
+ simgrid::simix::kernel([&] {
+ simgrid::surf::HostImpl* surf_host = this->extension<simgrid::surf::HostImpl>();
+ surf_host->setProperty(key,value);
+ });
+}
+
+/** Get the processes attached to the host */
+xbt_swag_t Host::processes()
+{
+ return simgrid::simix::kernel([&]() {
+ return ((smx_host_priv_t)this->extension(SIMIX_HOST_LEVEL))->process_list;
+ });
+}
+
+/** Get the peak power of a host */
+double Host::currentPowerPeak()
+{
+ return simgrid::simix::kernel([&] {
+ return this->pimpl_cpu->getCurrentPowerPeak();
+ });
+}
+
+/** Get one power peak (in flops/s) of a host at a given pstate */
+double Host::powerPeakAt(int pstate_index)
+{
+ return simgrid::simix::kernel([&] {
+ return this->pimpl_cpu->getPowerPeakAt(pstate_index);
+ });
+}
+
+/** @brief Get the speed of the cpu associated to a host */
+double Host::speed() {
+ return pimpl_cpu->getSpeed(1.0);
+}
+/** @brief Returns the number of core of the processor. */
+int Host::core_count() {
+ return pimpl_cpu->getCore();
+}