1 /* Copyright (c) 2016. The SimGrid Team.
2 * All rights reserved. */
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. */
7 #ifndef SIMGRID_PLUGINS_LINK_ENERGY_H_
8 #define SIMGRID_PLUGINS_LINK_ENERGY_H_
11 #include <simgrid/forward.h>
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);
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();