ns3::DcfManager Class Reference
Manage a set of
ns3::DcfState.
More...
#include <dcf-manager.h>
List of all members.
Detailed Description
Manage a set of
ns3::DcfState.
Handle a set of independent ns3::DcfState, each of which represents a single DCF within a MAC stack. Each ns3::DcfState has a priority implicitely associated with it (the priority is determined when the ns3::DcfState is added to the DcfManager: the first DcfState to be added gets the highest priority, the second, the second highest priority, and so on.) which is used to handle "internal" collisions. i.e., when two local DcfState are expected to get access to the medium at the same time, the highest priority local DcfState wins access to the medium and the other DcfState suffers a "internal" collision.
Member Function Documentation
void ns3::DcfManager::Add |
( |
DcfState * |
dcf |
) |
|
- Parameters:
-
The
DcfManager does not take ownership of this pointer so, the callee must make sure that the
DcfState pointer will stay valid as long as the
DcfManager is valid. Note that the order in which
DcfState objects are added to a
DcfManager matters: the first
DcfState added has the highest priority, the second
DcfState added, has the second highest priority, etc.
Time ns3::DcfManager::GetAccessGrantStart |
( |
void |
|
) |
const [private] |
Access will never be granted to the medium _before_ the time returned by this method.
- Returns:
- the absolute time at which access could start to be granted
Time ns3::DcfManager::GetEifsNoDifs |
( |
|
) |
const |
- Returns:
- value set previously using SetEifsNoDifs.
void ns3::DcfManager::NotifyMaybeCcaBusyStartNow |
( |
Time |
duration |
) |
|
- Parameters:
-
| duration | expected duration of cca busy period |
Notify the DCF that a CCA busy period has just started.
void ns3::DcfManager::NotifyNavResetNow |
( |
Time |
duration |
) |
|
- Parameters:
-
| duration | the value of the received NAV. |
Called at end of rx
void ns3::DcfManager::NotifyNavStartNow |
( |
Time |
duration |
) |
|
- Parameters:
-
| duration | the value of the received NAV. |
Called at end of rx
void ns3::DcfManager::NotifyRxEndErrorNow |
( |
void |
|
) |
|
Notify the DCF that a packet reception was just completed unsuccessfully.
void ns3::DcfManager::NotifyRxEndOkNow |
( |
void |
|
) |
|
Notify the DCF that a packet reception was just completed successfully.
void ns3::DcfManager::NotifyRxStartNow |
( |
Time |
duration |
) |
|
- Parameters:
-
| duration | expected duration of reception |
Notify the DCF that a packet reception started for the expected duration.
void ns3::DcfManager::NotifyTxStartNow |
( |
Time |
duration |
) |
|
- Parameters:
-
| duration | expected duration of transmission |
Notify the DCF that a packet transmission was just started and is expected to last for the specified duration.
void ns3::DcfManager::RequestAccess |
( |
DcfState * |
state |
) |
|
void ns3::DcfManager::SetEifsNoDifs |
( |
Time |
eifsNoDifs |
) |
|
- Parameters:
-
| eifsNoDifs | the duration of a EIFS minus the duration of DIFS. |
It is a bad idea to call this method after RequestAccess or one of the Notify methods has been invoked.
void ns3::DcfManager::SetSifs |
( |
Time |
sifs |
) |
|
- Parameters:
-
| sifs | the duration of a SIFS. |
It is a bad idea to call this method after RequestAccess or one of the Notify methods has been invoked.
void ns3::DcfManager::SetSlot |
( |
Time |
slotTime |
) |
|
- Parameters:
-
| slotTime | the duration of a slot. |
It is a bad idea to call this method after RequestAccess or one of the Notify methods has been invoked.
The documentation for this class was generated from the following file:
- src/devices/wifi/dcf-manager.h