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 Andrea Sacco | 3 * Copyright (c) 2010 Andrea Sacco |
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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 * | 162 * |
163 * \param newState New state the modem is in. | 163 * \param newState New state the modem is in. |
164 */ | 164 */ |
165 virtual void ChangeState (int newState); | 165 virtual void ChangeState (int newState); |
166 | 166 |
167 /** | 167 /** |
168 * Handles energy depletion. | 168 * Handles energy depletion. |
169 */ | 169 */ |
170 virtual void HandleEnergyDepletion (void); | 170 virtual void HandleEnergyDepletion (void); |
171 | 171 |
| 172 /** |
| 173 * \brief Handles energy recharged. |
| 174 * |
| 175 * Not implemented |
| 176 */ |
| 177 virtual void HandleEnergyRecharged (void) |
| 178 { |
| 179 } |
| 180 |
172 | 181 |
173 private: | 182 private: |
174 void DoDispose (void); | 183 void DoDispose (void); |
175 | 184 |
176 /** | 185 /** |
177 * \return Current draw of device, at current state. | 186 * \return Current draw of device, at current state. |
178 */ | 187 */ |
179 virtual double DoGetCurrentA (void) const; | 188 virtual double DoGetCurrentA (void) const; |
180 | 189 |
181 /** | 190 /** |
(...skipping 30 matching lines...) Expand all Loading... |
212 Time m_lastUpdateTime; //!< Time stamp of previous energy update. | 221 Time m_lastUpdateTime; //!< Time stamp of previous energy update. |
213 | 222 |
214 /** Energy depletion callback. */ | 223 /** Energy depletion callback. */ |
215 AcousticModemEnergyDepletionCallback m_energyDepletionCallback; | 224 AcousticModemEnergyDepletionCallback m_energyDepletionCallback; |
216 | 225 |
217 }; // class AcousticModemEnergyModel | 226 }; // class AcousticModemEnergyModel |
218 | 227 |
219 } // namespace ns3 | 228 } // namespace ns3 |
220 | 229 |
221 #endif /* ACOUSTIC_MODEM_ENERGY_MODEL_H */ | 230 #endif /* ACOUSTIC_MODEM_ENERGY_MODEL_H */ |
LEFT | RIGHT |