LEFT | RIGHT |
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 * Defined in ns3::WifiPhyListener | 56 * Defined in ns3::WifiPhyListener |
57 */ | 57 */ |
58 virtual void NotifyRxStart (Time duration); | 58 virtual void NotifyRxStart (Time duration); |
59 | 59 |
60 /** | 60 /** |
61 * \brief Switches the WifiRadioEnergyModel back to IDLE state. | 61 * \brief Switches the WifiRadioEnergyModel back to IDLE state. |
62 * | 62 * |
63 * Defined in ns3::WifiPhyListener | 63 * Defined in ns3::WifiPhyListener |
64 * | 64 * |
65 */ | 65 */ |
66 virtual void NotifyRxEnd (void); | 66 virtual void NotifyRxEndOk (void); |
67 | 67 virtual void NotifyRxEndError (void); |
68 /** | 68 /** |
69 * \brief Switches the WifiRadioEnergyModel to TX state and switches back to | 69 * \brief Switches the WifiRadioEnergyModel to TX state and switches back to |
70 * IDLE after TX duration. | 70 * IDLE after TX duration. |
71 * | 71 * |
72 * \param duration the expected transmission duration. | 72 * \param duration the expected transmission duration. |
73 * | 73 * |
74 * Defined in ns3::WifiPhyListener | 74 * Defined in ns3::WifiPhyListener |
75 */ | 75 */ |
76 virtual void NotifyTxStart (Time duration); | 76 virtual void NotifyTxStart (Time duration); |
77 | 77 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 // Energy depletion callback | 244 // Energy depletion callback |
245 WifiRadioEnergyDepletionCallback m_energyDepletionCallback; | 245 WifiRadioEnergyDepletionCallback m_energyDepletionCallback; |
246 | 246 |
247 // WifiPhy listener | 247 // WifiPhy listener |
248 WifiRadioEnergyModelPhyListener *m_listener; | 248 WifiRadioEnergyModelPhyListener *m_listener; |
249 }; | 249 }; |
250 | 250 |
251 } // namespace ns3 | 251 } // namespace ns3 |
252 | 252 |
253 #endif /* WIFI_RADIO_ENERGY_MODEL_H */ | 253 #endif /* WIFI_RADIO_ENERGY_MODEL_H */ |
LEFT | RIGHT |