Public Member Functions | |
PhyListener (ns3::DcfManager *dcf) | |
virtual | ~PhyListener () |
virtual void | NotifyRxStart (Time duration) |
virtual void | NotifyRxEndOk (void) |
virtual void | NotifyRxEndError (void) |
virtual void | NotifyTxStart (Time duration) |
virtual void | NotifyMaybeCcaBusyStart (Time duration) |
Private Attributes | |
ns3::DcfManager * | m_dcf |
Definition at line 166 of file dcf-manager.cc.
ns3::PhyListener::PhyListener | ( | ns3::DcfManager * | dcf | ) | [inline] |
Definition at line 168 of file dcf-manager.cc.
virtual ns3::PhyListener::~PhyListener | ( | ) | [inline, virtual] |
Definition at line 170 of file dcf-manager.cc.
virtual void ns3::PhyListener::NotifyMaybeCcaBusyStart | ( | Time | duration | ) | [inline, virtual] |
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.
Implements ns3::WifiPhyListener.
Definition at line 183 of file dcf-manager.cc.
References m_dcf, and ns3::DcfManager::NotifyMaybeCcaBusyStartNow().
virtual void ns3::PhyListener::NotifyRxEndError | ( | void | ) | [inline, virtual] |
We have received the last bit of a packet for which NotifyRxStart was invoked first and, the packet has _not_ been successfully received.
Implements ns3::WifiPhyListener.
Definition at line 177 of file dcf-manager.cc.
References m_dcf, and ns3::DcfManager::NotifyRxEndErrorNow().
virtual void ns3::PhyListener::NotifyRxEndOk | ( | void | ) | [inline, virtual] |
We have received the last bit of a packet for which NotifyRxStart was invoked first and, the packet has been successfully received.
Implements ns3::WifiPhyListener.
Definition at line 174 of file dcf-manager.cc.
References m_dcf, and ns3::DcfManager::NotifyRxEndOkNow().
virtual void ns3::PhyListener::NotifyRxStart | ( | Time | duration | ) | [inline, virtual] |
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:
Implements ns3::WifiPhyListener.
Definition at line 171 of file dcf-manager.cc.
References m_dcf, and ns3::DcfManager::NotifyRxStartNow().
virtual void ns3::PhyListener::NotifyTxStart | ( | Time | duration | ) | [inline, virtual] |
duration | the expected transmission duration. |
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 implicitely reverts to the idle state unless they have received a cca busy report.
Implements ns3::WifiPhyListener.
Definition at line 180 of file dcf-manager.cc.
References m_dcf, and ns3::DcfManager::NotifyTxStartNow().
ns3::DcfManager* ns3::PhyListener::m_dcf [private] |
Definition at line 187 of file dcf-manager.cc.
Referenced by NotifyMaybeCcaBusyStart(), NotifyRxEndError(), NotifyRxEndOk(), NotifyRxStart(), and NotifyTxStart().