Classes | |
struct | ExpectedBackoff |
ExpectedBackoff structure. More... | |
Public Member Functions | |
TxopTest (ChannelAccessManagerTest< TxopType > *test, uint32_t i) | |
Constructor. | |
void | QueueTx (uint64_t txTime, uint64_t expectedGrantTime) |
Queue transmit function. | |
Private Types | |
typedef std::list< ExpectedBackoff > | ExpectedBackoffs |
expected backoffs typedef | |
typedef std::pair< uint64_t, uint64_t > | ExpectedGrant |
the expected grant typedef | |
typedef std::list< ExpectedGrant > | ExpectedGrants |
the collection of expected grants typedef | |
Private Member Functions | |
void | DoDispose () override |
Destructor implementation. | |
void | GenerateBackoff (uint8_t linkId) override |
Generate a new backoff for the given link now. | |
bool | HasFramesToTransmit (uint8_t linkId) override |
Check if the Txop has frames to transmit over the given link. | |
void | NotifyChannelAccessed (uint8_t linkId, Time txopDuration=Seconds(0)) override |
Called by the FrameExchangeManager to notify that channel access has been granted on the given link for the given amount of time. | |
void | NotifySleep (uint8_t linkId) override |
Notify that the given link switched to sleep mode. | |
void | NotifyWakeUp (uint8_t linkId) override |
When wake up operation occurs on a link, channel access on that link will be restarted. | |
Private Attributes | |
ExpectedBackoffs | m_expectedBackoff |
expected backoff (not due to an internal collision) | |
ExpectedGrants | m_expectedGrants |
expected grants | |
ExpectedBackoffs | m_expectedInternalCollision |
expected backoff due to an internal collision | |
uint32_t | m_i |
the index of the Txop | |
ChannelAccessManagerTest< TxopType > * | m_test |
Check if the Txop has frames to transmit. | |
Friends | |
class | ChannelAccessManagerTest< TxopType > |
allow ChannelAccessManagerTest class access | |
TxopTest Txop Test.
Definition at line 51 of file channel-access-manager-test.cc.
|
private |
expected backoffs typedef
Definition at line 96 of file channel-access-manager-test.cc.
|
private |
the expected grant typedef
Definition at line 86 of file channel-access-manager-test.cc.
|
private |
the collection of expected grants typedef
Definition at line 87 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 434 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 442 of file channel-access-manager-test.cc.
|
overrideprivate |
Generate a new backoff for the given link now.
linkId | the ID of the given link |
Definition at line 458 of file channel-access-manager-test.cc.
|
overrideprivate |
Check if the Txop has frames to transmit over the given link.
linkId | the ID of the given link. |
Definition at line 465 of file channel-access-manager-test.cc.
|
overrideprivate |
Called by the FrameExchangeManager to notify that channel access has been granted on the given link for the given amount of time.
linkId | the ID of the given link |
txopDuration | the duration of the TXOP gained (zero for DCF) |
Definition at line 450 of file channel-access-manager-test.cc.
References ns3::Txop::LinkEntity::access, ns3::Txop::GetLink(), and ns3::Txop::NOT_REQUESTED.
|
overrideprivate |
Notify that the given link switched to sleep mode.
linkId | the ID of the given link |
Definition at line 472 of file channel-access-manager-test.cc.
|
overrideprivate |
When wake up operation occurs on a link, channel access on that link will be restarted.
linkId | the ID of the link |
Definition at line 478 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 428 of file channel-access-manager-test.cc.
|
friend |
allow ChannelAccessManagerTest class access
Definition at line 67 of file channel-access-manager-test.cc.
|
private |
expected backoff (not due to an internal collision)
Definition at line 99 of file channel-access-manager-test.cc.
Referenced by ChannelAccessManagerTest< TxopType >::ExpectBackoff(), and ChannelAccessManagerTest< TxopType >::GenerateBackoff().
|
private |
expected grants
Definition at line 100 of file channel-access-manager-test.cc.
|
private |
expected backoff due to an internal collision
Definition at line 98 of file channel-access-manager-test.cc.
Referenced by ChannelAccessManagerTest< TxopType >::ExpectInternalCollision(), and ChannelAccessManagerTest< TxopType >::NotifyInternalCollision().
the index of the Txop
Definition at line 108 of file channel-access-manager-test.cc.
|
private |
Check if the Txop has frames to transmit.
Definition at line 107 of file channel-access-manager-test.cc.