1 #ifndef SIMGRID_PLUGINS_BATTERY_H_
2 #define SIMGRID_PLUGINS_BATTERY_H_
4 #include <simgrid/config.h>
5 #include <simgrid/forward.h>
10 XBT_PUBLIC void sg_battery_plugin_init();
12 XBT_PUBLIC void sg_battery_set_state(const_sg_host_t host, bool state);
13 XBT_PUBLIC void sg_battery_set_power(const_sg_host_t host, double power);
15 XBT_PUBLIC bool sg_battery_is_active(const_sg_host_t host);
16 XBT_PUBLIC double sg_battery_get_power(const_sg_host_t host);
17 XBT_PUBLIC double sg_battery_get_state_of_charge(const_sg_host_t host);
18 XBT_PUBLIC double sg_battery_get_state_of_charge_min(const_sg_host_t host);
19 XBT_PUBLIC double sg_battery_get_state_of_charge_max(const_sg_host_t host);
20 XBT_PUBLIC double sg_battery_get_state_of_health(const_sg_host_t host);
21 XBT_PUBLIC double sg_battery_get_capacity(const_sg_host_t host);
22 XBT_PUBLIC double sg_battery_get_cumulative_cost(const_sg_host_t host);
23 XBT_PUBLIC double sg_battery_get_next_event_date(const_sg_host_t host);