X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/eedd924ce3e7eb0d2273b669c9ee3941d1d320fc..fe4080b8dd04acb2074ca72d36e3019acddea455:/include/simgrid/plugins/battery.hpp diff --git a/include/simgrid/plugins/battery.hpp b/include/simgrid/plugins/battery.hpp index 058428beb4..61937a91a6 100644 --- a/include/simgrid/plugins/battery.hpp +++ b/include/simgrid/plugins/battery.hpp @@ -133,6 +133,7 @@ public: void set_load(const std::string& name, double power_w); void set_load(const std::string& name, bool active); void connect_host(s4u::Host* host, bool active = true); + std::string get_name() {return name_;} double get_state_of_charge(); double get_state_of_health(); double get_capacity();