Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1495)

Unified Diff: src/energy/model/energy-source.cc

Issue 57210044: Add support for Wifi SLEEP mode (Closed)
Patch Set: Add an EnergyRecharged callback Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/energy/model/energy-source.h ('k') | src/energy/model/simple-device-energy-model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/energy/model/energy-source.cc
===================================================================
--- a/src/energy/model/energy-source.cc
+++ b/src/energy/model/energy-source.cc
@@ -201,6 +201,18 @@
}
void
+EnergySource::NotifyEnergyRecharged (void)
+{
+ NS_LOG_FUNCTION (this);
+ // notify all device energy models installed on node
+ DeviceEnergyModelContainer::Iterator i;
+ for (i = m_models.Begin (); i != m_models.End (); i++)
+ {
+ (*i)->HandleEnergyRecharged ();
+ }
+}
+
+void
EnergySource::BreakDeviceEnergyModelRefCycle (void)
{
NS_LOG_FUNCTION (this);
« no previous file with comments | « src/energy/model/energy-source.h ('k') | src/energy/model/simple-device-energy-model.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b