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_ = {};
, 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)