Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add battery plugin and fix DAG doc
[simgrid.git] / include / simgrid / plugins / battery.hpp
1 #ifndef SIMGRID_PLUGINS_BATTERY_H_
2 #define SIMGRID_PLUGINS_BATTERY_H_
3
4 #include <simgrid/config.h>
5 #include <simgrid/forward.h>
6 #include <xbt/base.h>
7
8 SG_BEGIN_DECL
9
10 XBT_PUBLIC void sg_battery_plugin_init();
11
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);
14
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);
24
25 SG_END_DECL
26
27 #endif