OLD | NEW |
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 * | 55 * |
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 * Note that for the WifiRadioEnergyModel, the behavior of the function is the | |
66 * same as NotifyRxEndError. | |
67 */ | 65 */ |
68 virtual void NotifyRxEndOk (void); | 66 virtual void NotifyRxEndOk (void); |
69 | |
70 /** | |
71 * \brief Switches the WifiRadioEnergyModel back to IDLE state. | |
72 * | |
73 * Defined in ns3::WifiPhyListener | |
74 * | |
75 * Note that for the WifiRadioEnergyModel, the behavior of the function is the | |
76 * same as NotifyRxEndOk. | |
77 */ | |
78 virtual void NotifyRxEndError (void); | 67 virtual void NotifyRxEndError (void); |
79 | |
80 /** | 68 /** |
81 * \brief Switches the WifiRadioEnergyModel to TX state and switches back to | 69 * \brief Switches the WifiRadioEnergyModel to TX state and switches back to |
82 * IDLE after TX duration. | 70 * IDLE after TX duration. |
83 * | 71 * |
84 * \param duration the expected transmission duration. | 72 * \param duration the expected transmission duration. |
85 * | 73 * |
86 * Defined in ns3::WifiPhyListener | 74 * Defined in ns3::WifiPhyListener |
87 */ | 75 */ |
88 virtual void NotifyTxStart (Time duration); | 76 virtual void NotifyTxStart (Time duration); |
89 | 77 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 // Energy depletion callback | 244 // Energy depletion callback |
257 WifiRadioEnergyDepletionCallback m_energyDepletionCallback; | 245 WifiRadioEnergyDepletionCallback m_energyDepletionCallback; |
258 | 246 |
259 // WifiPhy listener | 247 // WifiPhy listener |
260 WifiRadioEnergyModelPhyListener *m_listener; | 248 WifiRadioEnergyModelPhyListener *m_listener; |
261 }; | 249 }; |
262 | 250 |
263 } // namespace ns3 | 251 } // namespace ns3 |
264 | 252 |
265 #endif /* WIFI_RADIO_ENERGY_MODEL_H */ | 253 #endif /* WIFI_RADIO_ENERGY_MODEL_H */ |
OLD | NEW |