Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove unused battery parameters
authorAdrien Gougeon <adrien.gougeon@ens-rennes.fr>
Tue, 11 Jul 2023 10:28:48 +0000 (12:28 +0200)
committerAdrien Gougeon <adrien.gougeon@ens-rennes.fr>
Tue, 11 Jul 2023 10:28:48 +0000 (12:28 +0200)
include/simgrid/plugins/battery.hpp
src/plugins/battery.cpp

index 9d36175..41d4495 100644 (file)
@@ -86,9 +86,6 @@ private:
   double charge_efficiency_;
   double discharge_efficiency_;
   double initial_capacity_wh_;
-  int cycles_; // total complete cycles (charge + discharge) the battery can do before complete depletion of its
-               // capacity
-  double depth_of_discharge_;
   double energy_budget_j_;
 
   std::map<const s4u::Host*, bool> host_loads_     = {};
index c2229b9..6967ee4 100644 (file)
@@ -211,8 +211,6 @@ Battery::Battery(const std::string& name, double state_of_charge, double charge_
     , charge_efficiency_(charge_efficiency)
     , discharge_efficiency_(discharge_efficiency)
     , initial_capacity_wh_(initial_capacity_wh)
-    , cycles_(cycles)
-    , depth_of_discharge_(depth_of_discharge)
     , energy_budget_j_(initial_capacity_wh * depth_of_discharge * 3600 * cycles * 2)
     , capacity_wh_(initial_capacity_wh)
     , energy_stored_j_(state_of_charge * 3600 * initial_capacity_wh)