+/** Retrieve the property value (or nullptr 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::kernelImmediate([&] {
+ 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::kernelImmediate([&]() {
+ return ((smx_host_priv_t)this->extension(SIMIX_HOST_LEVEL))->process_list;
+ });
+}
+
+/** Get the peak power of a host */
+double Host::getPstateSpeedCurrent()
+{
+ return simgrid::simix::kernelImmediate([&] {
+ return this->pimpl_cpu->getPstateSpeedCurrent();
+ });
+}
+
+/** Get one power peak (in flops/s) of a host at a given pstate */
+double Host::getPstateSpeed(int pstate_index)
+{
+ return simgrid::simix::kernelImmediate([&] {
+ return this->pimpl_cpu->getPstateSpeed(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::coresCount() {
+ return pimpl_cpu->getCore();
+}
+
+/** @brief Set the pstate at which the host should run */
+void Host::setPstate(int pstate_index)
+{
+ simgrid::simix::kernelImmediate(std::bind(
+ &simgrid::surf::Cpu::setPState, pimpl_cpu, pstate_index
+ ));
+}
+/** @brief Retrieve the pstate at which the host is currently running */
+int Host::pstate()
+{
+ return pimpl_cpu->getPState();
+}
+
+void Host::parameters(vm_params_t params)
+{
+ simgrid::simix::kernelImmediate([&]() {
+ this->extension<simgrid::surf::HostImpl>()->getParams(params);
+ });
+}
+
+void Host::setParameters(vm_params_t params)
+{
+ simgrid::simix::kernelImmediate([&]() {
+ this->extension<simgrid::surf::HostImpl>()->setParams(params);
+ });
+}
+
+/**
+ * \ingroup simix_storage_management
+ * \brief Returns the list of storages mounted on an host.
+ * \return a dict containing all storages mounted on the host
+ */
+xbt_dict_t Host::mountedStoragesAsDict()
+{
+ return simgrid::simix::kernelImmediate([&] {
+ return this->extension<simgrid::surf::HostImpl>()->getMountedStorageList();
+ });
+}
+
+/**
+ * \ingroup simix_storage_management
+ * \brief Returns the list of storages attached to an host.
+ * \return a dict containing all storages attached to the host
+ */
+xbt_dynar_t Host::attachedStorages()
+{
+ return simgrid::simix::kernelImmediate([&] {
+ return this->extension<simgrid::surf::HostImpl>()->getAttachedStorageList();
+ });
+}