Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
3ade039a994e7222e93f80da111b129d7eb46371
[simgrid.git] / include / simgrid / plugins / link_energy.h
1 /* Copyright (c) 2016. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef SIMGRID_PLUGINS_LINK_ENERGY_H_
8 #define SIMGRID_PLUGINS_LINK_ENERGY_H_
9
10 #include <simgrid/forward.h>
11 #include <xbt/base.h>
12
13 SG_BEGIN_DECL()
14
15 XBT_PUBLIC(double) sg_link_get_consumped_power(sg_link_t link);
16 XBT_PUBLIC(double) sg_link_get_usage(sg_link_t link);
17 XBT_PUBLIC(void) sg_on_simulation_end();
18 XBT_PUBLIC(void) sg_link_energy_plugin_init();
19 XBT_PUBLIC(double) sg_link_get_consumed_energy(sg_link_t link);
20
21 XBT_PUBLIC(double) ns3__link_get_consumped_power(sg_link_t link);
22 XBT_PUBLIC(double) ns3_link_get_usage(sg_link_t link);
23 XBT_PUBLIC(void) ns3_on_simulation_end();
24 XBT_PUBLIC(double) ns3_link_get_consumed_energy(sg_link_t link);
25 XBT_PUBLIC(void) ns3_link_energy_plugin_init();
26
27 SG_END_DECL()
28
29 #endif