X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f3611280dda4576e396d3f71cb1424b232b6df14..3907e83884bae6278656e9cd2cb7ef92a8f707fb:/include/simgrid/plugins/chiller.hpp diff --git a/include/simgrid/plugins/chiller.hpp b/include/simgrid/plugins/chiller.hpp index b60e03dc82..11fa173477 100644 --- a/include/simgrid/plugins/chiller.hpp +++ b/include/simgrid/plugins/chiller.hpp @@ -11,7 +11,9 @@ namespace simgrid::plugins { +/** @ingroup plugin_chiller */ class Chiller; +/** @ingroup plugin_chiller */ using ChillerPtr = boost::intrusive_ptr; XBT_PUBLIC void intrusive_ptr_release(Chiller* o); XBT_PUBLIC void intrusive_ptr_add_ref(Chiller* o); @@ -68,6 +70,9 @@ private: friend void intrusive_ptr_add_ref(Chiller* o) { o->refcount_.fetch_add(1, std::memory_order_relaxed); } #endif + static xbt::signal on_power_change; + xbt::signal on_this_power_change; + public: static ChillerPtr init(const std::string& name, double air_mass_kg, double specific_heat_j_per_kg_per_c, double alpha, double cooling_efficiency, double initial_temp_c, double goal_temp_c, double max_power_w); @@ -80,8 +85,8 @@ public: ChillerPtr set_goal_temp(double goal_temp_c); ChillerPtr set_max_power(double max_power_w); ChillerPtr set_active(bool active); - ChillerPtr add_host(s4u::Host* host); - ChillerPtr remove_host(s4u::Host* host); + ChillerPtr add_host(simgrid::s4u::Host* host); + ChillerPtr remove_host(simgrid::s4u::Host* host); std::string get_name() { return name_; } const char* get_cname() { return name_.c_str(); } @@ -93,9 +98,9 @@ public: double get_max_power() { return max_power_w_; } bool is_active() { return active_; } double get_temp_in() { return temp_in_c_; } - double get_temp_out() { return temp_out_c_; } double get_power() { return power_w_; } double get_energy_consumed() { return energy_consumed_j_; } + double get_time_to_goal_temp(); }; } // namespace simgrid::plugins