X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/da9e3460f9f8e4eb2ad4c523a19a8ddb79807e60..cf07616d00639f39bad49729f9e63b7533eed9a4:/include/simgrid/s4u/host.hpp diff --git a/include/simgrid/s4u/host.hpp b/include/simgrid/s4u/host.hpp index b03753569c..7c48221eb8 100644 --- a/include/simgrid/s4u/host.hpp +++ b/include/simgrid/s4u/host.hpp @@ -94,7 +94,7 @@ public: void setPstate(int pstate_index); int pstate(); xbt_dict_t mountedStoragesAsDict(); // HACK - xbt_dynar_t attachedStorages(); + std::vector attachedStorages(); /** Get an associative list [mount point]->[Storage] of all local mount points. * @@ -103,6 +103,7 @@ public: boost::unordered_map const &mountedStorages(); void routeTo(Host * dest, std::vector * links, double* latency); + void routeTo(Host * dest, std::vector * links, double* latency); private: simgrid::xbt::string name_ = "noname"; @@ -114,20 +115,21 @@ public: /** DO NOT USE DIRECTLY (@todo: these should be protected, once our code is clean) */ surf::Cpu *pimpl_cpu = nullptr; /** DO NOT USE DIRECTLY (@todo: these should be protected, once our code is clean) */ - kernel::routing::NetCard *pimpl_netcard = nullptr; + kernel::routing::NetPoint* pimpl_netpoint = nullptr; -public: /*** Called on each newly created object */ static simgrid::xbt::signal onCreation; /*** Called just before destructing an object */ static simgrid::xbt::signal onDestruction; /*** Called when the machine is turned on or off */ static simgrid::xbt::signal onStateChange; + /*** Called when the speed of the machine is changed + * (either because of a pstate switch or because of an external load event coming from the profile) */ + static simgrid::xbt::signal onSpeedChange; }; }} // namespace simgrid::s4u -extern int MSG_HOST_LEVEL; extern int USER_HOST_LEVEL; #endif /* SIMGRID_S4U_HOST_HPP */