Classes | |
struct | ExpectedBackoff |
ExpectedBackoff structure. More... | |
Public Member Functions | |
TxopTest (ChannelAccessManagerTest< TxopType > *test, uint32_t i) | |
Constructor. More... | |
void | QueueTx (uint64_t txTime, uint64_t expectedGrantTime) |
Queue transmit function. More... | |
Private Types | |
typedef std::list< struct ExpectedBackoff > | ExpectedBackoffs |
expected backoffs typedef More... | |
typedef std::pair< uint64_t, uint64_t > | ExpectedGrant |
the expected grant typedef More... | |
typedef std::list< ExpectedGrant > | ExpectedGrants |
the collection of expected grants typedef More... | |
Private Member Functions | |
void | DoDispose (void) override |
Destructor implementation. More... | |
void | GenerateBackoff (void) override |
Generate a new backoff now. More... | |
bool | HasFramesToTransmit (void) override |
Check if the Txop has frames to transmit. More... | |
void | NotifyChannelAccessed (Time txopDuration=Seconds(0)) override |
Called by the FrameExchangeManager to notify that channel access has been granted for the given amount of time. More... | |
void | NotifySleep (void) override |
When sleep operation occurs, if there is a pending packet transmission, it will be reinserted to the front of the queue. More... | |
void | NotifyWakeUp (void) override |
When wake up operation occurs, channel access will be restarted. More... | |
Private Attributes | |
ExpectedBackoffs | m_expectedBackoff |
expected backoff (not due to an internal collision) More... | |
ExpectedGrants | m_expectedGrants |
expected grants More... | |
ExpectedBackoffs | m_expectedInternalCollision |
expected backoff due to an internal collision More... | |
uint32_t | m_i |
the index of the Txop More... | |
ChannelAccessManagerTest< TxopType > * | m_test |
Check if the Txop has frames to transmit. More... | |
Friends | |
class | ChannelAccessManagerTest< TxopType > |
allow ChannelAccessManagerTest class access More... | |
TxopTest Txop Test.
Definition at line 39 of file channel-access-manager-test.cc.
|
private |
expected backoffs typedef
Definition at line 82 of file channel-access-manager-test.cc.
|
private |
the expected grant typedef
Definition at line 74 of file channel-access-manager-test.cc.
|
private |
the collection of expected grants typedef
Definition at line 75 of file channel-access-manager-test.cc.
TxopTest< TxopType >::TxopTest | ( | ChannelAccessManagerTest< TxopType > * | test, |
uint32_t | i | ||
) |
Constructor.
test | the test channel access manager |
i | the index of the Txop |
Definition at line 397 of file channel-access-manager-test.cc.
Destructor implementation.
This method is called by Dispose() or by the Object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overridden version of this method and chain up to their parent's implementation once they are done. i.e, for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose() method.
It is safe to call GetObject() from within this method.
Definition at line 405 of file channel-access-manager-test.cc.
Generate a new backoff now.
Definition at line 421 of file channel-access-manager-test.cc.
|
overrideprivate |
Check if the Txop has frames to transmit.
Definition at line 428 of file channel-access-manager-test.cc.
|
overrideprivate |
Called by the FrameExchangeManager to notify that channel access has been granted for the given amount of time.
txopDuration | the duration of the TXOP gained (zero for DCF) |
Definition at line 413 of file channel-access-manager-test.cc.
When sleep operation occurs, if there is a pending packet transmission, it will be reinserted to the front of the queue.
Definition at line 435 of file channel-access-manager-test.cc.
When wake up operation occurs, channel access will be restarted.
Definition at line 441 of file channel-access-manager-test.cc.
void TxopTest< TxopType >::QueueTx | ( | uint64_t | txTime, |
uint64_t | expectedGrantTime | ||
) |
Queue transmit function.
txTime | the transmit time |
expectedGrantTime | the expected grant time |
Definition at line 391 of file channel-access-manager-test.cc.
|
friend |
allow ChannelAccessManagerTest class access
Definition at line 55 of file channel-access-manager-test.cc.
|
private |
expected backoff (not due to an internal collision)
Definition at line 85 of file channel-access-manager-test.cc.
Referenced by ChannelAccessManagerTest< TxopType >::ExpectBackoff(), and ChannelAccessManagerTest< TxopType >::GenerateBackoff().
|
private |
expected grants
Definition at line 86 of file channel-access-manager-test.cc.
|
private |
expected backoff due to an internal collision
Definition at line 84 of file channel-access-manager-test.cc.
Referenced by ChannelAccessManagerTest< TxopType >::ExpectInternalCollision(), and ChannelAccessManagerTest< TxopType >::NotifyInternalCollision().
the index of the Txop
Definition at line 94 of file channel-access-manager-test.cc.
|
private |
Check if the Txop has frames to transmit.
Definition at line 93 of file channel-access-manager-test.cc.