|
ns-3
|
#include <wifi-radio-energy-model.h>


Public Member Functions | |
| void | SetChangeStateCallback (DeviceEnergyModel::ChangeStateCallback callback) |
| Sets the change state callback. Used by helper class. | |
| virtual void | NotifyRxStart (Time duration) |
| Switches the WifiRadioEnergyModel to RX state. | |
| virtual void | NotifyRxEndOk (void) |
| Switches the WifiRadioEnergyModel back to IDLE state. | |
| virtual void | NotifyRxEndError (void) |
| Switches the WifiRadioEnergyModel back to IDLE state. | |
| virtual void | NotifyTxStart (Time duration) |
| Switches the WifiRadioEnergyModel to TX state and switches back to IDLE after TX duration. | |
| virtual void | NotifyMaybeCcaBusyStart (Time duration) |
| virtual void | NotifySwitchingStart (Time duration) |
A WifiPhy listener class for notifying the WifiRadioEnergyModel of Wifi radio state change.
| void ns3::WifiRadioEnergyModelPhyListener::NotifyMaybeCcaBusyStart | ( | Time | duration | ) | [virtual] |
| duration | the expected busy duration. |
Defined in ns3::WifiPhyListener
Implements ns3::WifiPhyListener.
References ns3::EventId::Cancel(), ns3::WifiPhy::CCA_BUSY, NS_FATAL_ERROR, and ns3::Simulator::Schedule().
| void ns3::WifiRadioEnergyModelPhyListener::NotifyRxEndError | ( | void | ) | [virtual] |
Switches the WifiRadioEnergyModel back to IDLE state.
Defined in ns3::WifiPhyListener
Note that for the WifiRadioEnergyModel, the behavior of the function is the same as NotifyRxEndOk.
Implements ns3::WifiPhyListener.
References ns3::WifiPhy::IDLE, and NS_FATAL_ERROR.
| void ns3::WifiRadioEnergyModelPhyListener::NotifyRxEndOk | ( | void | ) | [virtual] |
Switches the WifiRadioEnergyModel back to IDLE state.
Defined in ns3::WifiPhyListener
Note that for the WifiRadioEnergyModel, the behavior of the function is the same as NotifyRxEndError.
Implements ns3::WifiPhyListener.
References ns3::WifiPhy::IDLE, and NS_FATAL_ERROR.
| void ns3::WifiRadioEnergyModelPhyListener::NotifyRxStart | ( | Time | duration | ) | [virtual] |
Switches the WifiRadioEnergyModel to RX state.
| duration | the expected duration of the packet reception. |
Defined in ns3::WifiPhyListener
Implements ns3::WifiPhyListener.
References ns3::EventId::Cancel(), NS_FATAL_ERROR, and ns3::WifiPhy::RX.
| void ns3::WifiRadioEnergyModelPhyListener::NotifySwitchingStart | ( | Time | duration | ) | [virtual] |
| duration | the expected channel switching duration. |
Defined in ns3::WifiPhyListener
Implements ns3::WifiPhyListener.
References ns3::EventId::Cancel(), NS_FATAL_ERROR, ns3::Simulator::Schedule(), and ns3::WifiPhy::SWITCHING.
| void ns3::WifiRadioEnergyModelPhyListener::NotifyTxStart | ( | Time | duration | ) | [virtual] |
Switches the WifiRadioEnergyModel to TX state and switches back to IDLE after TX duration.
| duration | the expected transmission duration. |
Defined in ns3::WifiPhyListener
Implements ns3::WifiPhyListener.
References ns3::EventId::Cancel(), NS_FATAL_ERROR, ns3::Simulator::Schedule(), and ns3::WifiPhy::TX.
| void ns3::WifiRadioEnergyModelPhyListener::SetChangeStateCallback | ( | DeviceEnergyModel::ChangeStateCallback | callback | ) |
Sets the change state callback. Used by helper class.
| callback | Change state callback. |
References NS_ASSERT.