From: Christian Heinrich Date: Thu, 2 Aug 2018 19:28:55 +0000 (+0200) Subject: [DVFS] Move comment + change get_host() visibility X-Git-Tag: v3_21~317 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a35a3a5fbfe60dbfa9aa9b12dc37de596f47387b [DVFS] Move comment + change get_host() visibility --- diff --git a/src/plugins/host_dvfs.cpp b/src/plugins/host_dvfs.cpp index 9e09300f93..0a0e2da83b 100644 --- a/src/plugins/host_dvfs.cpp +++ b/src/plugins/host_dvfs.cpp @@ -40,20 +40,37 @@ namespace simgrid { namespace plugin { namespace dvfs { + +/** + * Add this to your host tag: + * - \ + * + * Valid values as of now are: performance, powersave, ondemand, conservative + * It doesn't matter if you use uppercase or lowercase. + * + * For the sampling rate, use this: + * + * - \ + * + * This will run the update() method of the specified governor every 2 seconds + * on that host. + * + * These properties can also be used within the \ tag to configure + * these values globally. Using them within the \ will overwrite this + * global configuration + */ class Governor { -private: +protected: simgrid::s4u::Host* const host_; double sampling_rate_; -protected: - simgrid::s4u::Host* get_host() const { return host_; } - public: explicit Governor(simgrid::s4u::Host* ptr) : host_(ptr) { init(); } virtual ~Governor() = default; virtual std::string get_name() = 0; + simgrid::s4u::Host* get_host() const { return host_; } void init() { @@ -201,24 +218,6 @@ public: } }; -/** - * Add this to your host tag: - * - \ - * - * Valid values as of now are: performance, powersave, ondemand, conservative - * It doesn't matter if you use uppercase or lowercase. - * - * For the sampling rate, use this: - * - * - \ - * - * This will run the update() method of the specified governor every 2 seconds - * on that host. - * - * These properties can also be used within the \ tag to configure - * these values globally. Using them within the \ will overwrite this - * global configuration - */ } // namespace dvfs } // namespace plugin } // namespace simgrid