Classes | |
struct | ExpectedCollision |
Public Member Functions | |
DcfStateTest (DcfManagerTest *test, uint32_t i) | |
void | QueueTx (uint64_t txTime, uint64_t expectedGrantTime) |
Public Member Functions inherited from ns3::DcfState | |
uint32_t | GetAifsn (void) const |
uint32_t | GetCw (void) const |
uint32_t | GetCwMax (void) const |
uint32_t | GetCwMin (void) const |
bool | IsAccessRequested (void) const |
void | ResetCw (void) |
void | SetAifsn (uint32_t aifsn) |
void | SetCwMax (uint32_t maxCw) |
void | SetCwMin (uint32_t minCw) |
void | StartBackoffNow (uint32_t nSlots) |
void | UpdateFailedCw (void) |
Private Types | |
typedef std::list< struct ExpectedCollision > | ExpectedCollisions |
typedef std::pair< uint64_t, uint64_t > | ExpectedGrant |
typedef std::list< ExpectedGrant > | ExpectedGrants |
Private Member Functions | |
virtual void | DoNotifyAccessGranted (void) |
virtual void | DoNotifyChannelSensing (void) |
virtual void | DoNotifyChannelSwitching (void) |
virtual void | DoNotifyCollision (void) |
virtual void | DoNotifyInternalCollision (void) |
Private Attributes | |
ExpectedCollisions | m_expectedCollision |
ExpectedGrants | m_expectedGrants |
ExpectedCollisions | m_expectedInternalCollision |
uint32_t | m_i |
DcfManagerTest * | m_test |
Friends | |
class | DcfManagerTest |
Definition at line 29 of file dcf-manager-test.cc.
|
privatevirtual |
Called by DcfManager to notify a DcfState subclass that access to the medium is granted and can start immediately.
Implements ns3::DcfState.
Definition at line 122 of file dcf-manager-test.cc.
|
privatevirtual |
Called by DcfManager to notify a DcfState subclass that a normal collision occured, that is, that the medium was busy when access was requested.
The subclass is expected to start a new backoff by calling DcfState::StartBackoffNow and DcfManager::RequestAccess is access is still needed.
Implements ns3::DcfState.
Definition at line 132 of file dcf-manager-test.cc.
|
privatevirtual |
Called by DcfManager to notify a DcfState subclass that an 'internal' collision occured, that is, that the backoff timer of a higher priority DcfState expired at the same time and that access was granted to this higher priority DcfState.
The subclass is expected to start a new backoff by calling DcfState::StartBackoffNow and DcfManager::RequestAccess is access is still needed.
Implements ns3::DcfState.
Definition at line 127 of file dcf-manager-test.cc.