LEFT | RIGHT |
(no file at all) | |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle. | 3 * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle. |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 /** | 57 /** |
58 * \param callback Callback function for energy depletion handling. | 58 * \param callback Callback function for energy depletion handling. |
59 * | 59 * |
60 * Sets the callback to be invoked when energy is depleted. | 60 * Sets the callback to be invoked when energy is depleted. |
61 */ | 61 */ |
62 void SetDepletionCallback ( | 62 void SetDepletionCallback ( |
63 WifiRadioEnergyModel::WifiRadioEnergyDepletionCallback callback); | 63 WifiRadioEnergyModel::WifiRadioEnergyDepletionCallback callback); |
64 | 64 |
65 /** | 65 /** |
| 66 * \param callback Callback function for energy recharged handling. |
| 67 * |
| 68 * Sets the callback to be invoked when energy is recharged. |
| 69 */ |
| 70 void SetRechargedCallback ( |
| 71 WifiRadioEnergyModel::WifiRadioEnergyRechargedCallback callback); |
| 72 |
| 73 /** |
66 * \param name the name of the model to set | 74 * \param name the name of the model to set |
67 * \param n0 the name of the attribute to set | 75 * \param n0 the name of the attribute to set |
68 * \param v0 the value of the attribute to set | 76 * \param v0 the value of the attribute to set |
69 * \param n1 the name of the attribute to set | 77 * \param n1 the name of the attribute to set |
70 * \param v1 the value of the attribute to set | 78 * \param v1 the value of the attribute to set |
71 * \param n2 the name of the attribute to set | 79 * \param n2 the name of the attribute to set |
72 * \param v2 the value of the attribute to set | 80 * \param v2 the value of the attribute to set |
73 * \param n3 the name of the attribute to set | 81 * \param n3 the name of the attribute to set |
74 * \param v3 the value of the attribute to set | 82 * \param v3 the value of the attribute to set |
75 * \param n4 the name of the attribute to set | 83 * \param n4 the name of the attribute to set |
(...skipping 23 matching lines...) Expand all Loading... |
99 * \param source Pointer to EnergySource to install. | 107 * \param source Pointer to EnergySource to install. |
100 * | 108 * |
101 * Implements DeviceEnergyModel::Install. | 109 * Implements DeviceEnergyModel::Install. |
102 */ | 110 */ |
103 virtual Ptr<DeviceEnergyModel> DoInstall (Ptr<NetDevice> device, | 111 virtual Ptr<DeviceEnergyModel> DoInstall (Ptr<NetDevice> device, |
104 Ptr<EnergySource> source) const; | 112 Ptr<EnergySource> source) const; |
105 | 113 |
106 private: | 114 private: |
107 ObjectFactory m_radioEnergy; | 115 ObjectFactory m_radioEnergy; |
108 WifiRadioEnergyModel::WifiRadioEnergyDepletionCallback m_depletionCallback; | 116 WifiRadioEnergyModel::WifiRadioEnergyDepletionCallback m_depletionCallback; |
| 117 WifiRadioEnergyModel::WifiRadioEnergyRechargedCallback m_rechargedCallback; |
109 ObjectFactory m_txCurrentModel; | 118 ObjectFactory m_txCurrentModel; |
110 | 119 |
111 }; | 120 }; |
112 | 121 |
113 } // namespace ns3 | 122 } // namespace ns3 |
114 | 123 |
115 #endif /* WIFI_RADIO_ENERGY_MODEL_HELPER_H */ | 124 #endif /* WIFI_RADIO_ENERGY_MODEL_HELPER_H */ |
LEFT | RIGHT |