+ return this->pimpl_cpu->is_on();
+}
+
+int Host::getPstatesCount() const
+{
+ return this->pimpl_cpu->getNbPStates();
+}
+
+/**
+ * \brief Return the list of actors attached to an host.
+ *
+ * \param whereto a vector in which we should push actors living on that host
+ */
+void Host::actorList(std::vector<ActorPtr>* whereto)
+{
+ for (auto& actor : this->extension<simgrid::simix::Host>()->process_list) {
+ whereto->push_back(actor.ciface());
+ }
+}
+
+/**
+ * \brief Find a route toward another host
+ *
+ * \param dest [IN] where to
+ * \param links [OUT] where to store the list of links (must exist, cannot be nullptr).
+ * \param latency [OUT] where to store the latency experienced on the path (or nullptr if not interested)
+ * It is the caller responsibility to initialize latency to 0 (we add to provided route)
+ * \pre links!=nullptr
+ *
+ * walk through the routing components tree and find a route between hosts
+ * by calling each "get_route" function in each routing component.
+ */
+void Host::routeTo(Host* dest, std::vector<Link*>& links, double* latency)
+{
+ std::vector<surf::LinkImpl*> linkImpls;
+ this->routeTo(dest, linkImpls, latency);
+ for (surf::LinkImpl* const& l : linkImpls)
+ links.push_back(&l->piface_);
+}
+
+/** @brief Just like Host::routeTo, but filling an array of link implementations */
+void Host::routeTo(Host* dest, std::vector<surf::LinkImpl*>& links, double* latency)
+{
+ simgrid::kernel::routing::NetZoneImpl::get_global_route(pimpl_netpoint, dest->pimpl_netpoint, links, latency);
+ if (XBT_LOG_ISENABLED(surf_route, xbt_log_priority_debug)) {
+ XBT_CDEBUG(surf_route, "Route from '%s' to '%s' (latency: %f):", get_cname(), dest->get_cname(),
+ (latency == nullptr ? -1 : *latency));
+ for (auto const& link : links)
+ XBT_CDEBUG(surf_route, "Link %s", link->get_cname());
+ }
+}
+
+/** Get the properties assigned to a host */
+std::map<std::string, std::string>* Host::getProperties()
+{
+ return simgrid::simix::kernelImmediate([this] { return this->pimpl_->getProperties(); });
+}
+
+/** Retrieve the property value (or nullptr if not set) */
+const char* Host::getProperty(const char* key)
+{
+ return this->pimpl_->getProperty(key);
+}
+
+void Host::setProperty(std::string key, std::string value)
+{
+ simgrid::simix::kernelImmediate([this, key, value] { this->pimpl_->setProperty(key, value); });
+}
+
+/** Get the processes attached to the host */
+void Host::getProcesses(std::vector<ActorPtr>* list)
+{
+ for (auto& actor : this->extension<simgrid::simix::Host>()->process_list) {
+ list->push_back(actor.iface());
+ }
+}
+
+/** @brief Get the peak processor speed (in flops/s), at the specified pstate */
+double Host::getPstateSpeed(int pstate_index)
+{
+ return simgrid::simix::kernelImmediate([this, pstate_index] {
+ return this->pimpl_cpu->getPstateSpeed(pstate_index);
+ });