Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Various sonar cleanups
[simgrid.git] / src / plugins / chiller.cpp
index 3cec29d..0a4d3af 100644 (file)
@@ -57,6 +57,7 @@ chiller is not active, the temperature of the room increases.
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(Chiller, kernel, "Logging specific to the solar panel plugin");
 
 namespace simgrid::plugins {
+xbt::signal<void(Chiller*)> Chiller::on_power_change; // initialisation of static field
 
 /* ChillerModel */
 
@@ -282,7 +283,7 @@ ChillerPtr Chiller::remove_host(s4u::Host* host)
 /** @ingroup plugin_chiller
  *  @return The time to reach to goal temp, assuming that the system remain in the same state.
  */
-double Chiller::get_time_to_goal_temp()
+double Chiller::get_time_to_goal_temp() const
 {
   if (goal_temp_c_ == temp_in_c_)
     return 0;