receive notifications about PHY events.
More...
#include "wifi-phy-listener.h"
receive notifications about PHY events.
Definition at line 32 of file wifi-phy-listener.h.
◆ ~WifiPhyListener()
virtual ns3::WifiPhyListener::~WifiPhyListener |
( |
| ) |
|
|
inlinevirtual |
◆ NotifyMaybeCcaBusyStart()
virtual void ns3::WifiPhyListener::NotifyMaybeCcaBusyStart |
( |
Time |
duration | ) |
|
|
pure virtual |
- Parameters
-
duration | the expected busy duration. |
This method does not really report a real state change as opposed to the other methods in this class. It merely reports that, unless the medium is reported busy through NotifyTxStart or NotifyRxStart/End, it will be busy as defined by the currently selected CCA mode.
Typical client code which wants to have a clear picture of the CCA state will need to keep track of the time at which the last NotifyCcaBusyStart method is called and what duration it reported.
Implemented in TestPhyListener, ns3::WifiRadioEnergyModelPhyListener, and ns3::PhyListener.
◆ NotifyOff()
virtual void ns3::WifiPhyListener::NotifyOff |
( |
void |
| ) |
|
|
pure virtual |
◆ NotifyOn()
virtual void ns3::WifiPhyListener::NotifyOn |
( |
void |
| ) |
|
|
pure virtual |
◆ NotifyRxEndError()
virtual void ns3::WifiPhyListener::NotifyRxEndError |
( |
void |
| ) |
|
|
pure virtual |
◆ NotifyRxEndOk()
virtual void ns3::WifiPhyListener::NotifyRxEndOk |
( |
void |
| ) |
|
|
pure virtual |
◆ NotifyRxStart()
virtual void ns3::WifiPhyListener::NotifyRxStart |
( |
Time |
duration | ) |
|
|
pure virtual |
- Parameters
-
duration | the expected duration of the packet reception. |
We have received the first bit of a packet. We decided that we could synchronize on this packet. It does not mean we will be able to successfully receive completely the whole packet. It means that we will report a BUSY status until one of the following happens:
- NotifyRxEndOk
- NotifyRxEndError
- NotifyTxStart
Implemented in TestPhyListener, ns3::WifiRadioEnergyModelPhyListener, and ns3::PhyListener.
◆ NotifySleep()
virtual void ns3::WifiPhyListener::NotifySleep |
( |
void |
| ) |
|
|
pure virtual |
◆ NotifySwitchingStart()
virtual void ns3::WifiPhyListener::NotifySwitchingStart |
( |
Time |
duration | ) |
|
|
pure virtual |
◆ NotifyTxStart()
virtual void ns3::WifiPhyListener::NotifyTxStart |
( |
Time |
duration, |
|
|
double |
txPowerDbm |
|
) |
| |
|
pure virtual |
- Parameters
-
duration | the expected transmission duration. |
txPowerDbm | the nominal TX power in dBm |
We are about to send the first bit of the packet. We do not send any event to notify the end of transmission. Listeners should assume that the channel implicitly reverts to the idle state unless they have received a CCA busy report.
Implemented in TestPhyListener, ns3::WifiRadioEnergyModelPhyListener, and ns3::PhyListener.
◆ NotifyWakeup()
virtual void ns3::WifiPhyListener::NotifyWakeup |
( |
void |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: