Dcf State Test. More...
Inheritance diagram for DcfStateTest:
Collaboration diagram for DcfStateTest:Classes | |
| struct | ExpectedCollision |
| ExpectedCollision structure. More... | |
Public Member Functions | |
| DcfStateTest (Ptr< DcaTxop > dca) | |
| Constructor. More... | |
| void | QueueTx (uint64_t txTime, uint64_t expectedGrantTime) |
| Queue transmit function. More... | |
Public Member Functions inherited from ns3::DcfState | |
| DcfState (Ptr< DcaTxop > txop) | |
| Constructor. More... | |
| virtual | ~DcfState () |
| uint32_t | GetAifsn (void) const |
| Return the number of slots that make up an AIFS. More... | |
| uint32_t | GetCw (void) const |
| uint32_t | GetCwMax (void) const |
| Return the maximum congestion window size. More... | |
| uint32_t | GetCwMin (void) const |
| Return the minimum congestion window size. More... | |
| Time | GetTxopLimit (void) const |
| Return the TXOP limit. More... | |
| bool | IsAccessRequested (void) const |
| bool | IsEdca (void) const |
| void | ResetCw (void) |
| Update the value of the CW variable to take into account a transmission success or a transmission abort (stop transmission of a packet after the maximum number of retransmissions has been reached). More... | |
| void | SetAifsn (uint32_t aifsn) |
| void | SetCwMax (uint32_t maxCw) |
| Set the maximum congestion window size. More... | |
| void | SetCwMin (uint32_t minCw) |
| Set the minimum congestion window size. More... | |
| void | SetTxopLimit (Time txopLimit) |
| Set the TXOP limit. More... | |
| void | StartBackoffNow (uint32_t nSlots) |
| void | UpdateFailedCw (void) |
| Update the value of the CW variable to take into account a transmission failure. More... | |
Public Member Functions inherited from ns3::Object | |
| Object () | |
| Constructor. More... | |
| virtual | ~Object () |
| Destructor. More... | |
| void | AggregateObject (Ptr< Object > other) |
| Aggregate two Objects together. More... | |
| void | Dispose (void) |
| Dispose of this Object. More... | |
| AggregateIterator | GetAggregateIterator (void) const |
| Get an iterator to the Objects aggregated to this one. More... | |
| virtual TypeId | GetInstanceTypeId (void) const |
| Get the most derived TypeId for this Object. More... | |
| template<typename T > | |
| Ptr< T > | GetObject (void) const |
| Get a pointer to the requested aggregated Object. More... | |
| template<typename T > | |
| Ptr< T > | GetObject (TypeId tid) const |
| Get a pointer to the requested aggregated Object by TypeId. More... | |
| void | Initialize (void) |
| Invoke DoInitialize on all Objects aggregated to this one. More... | |
| bool | IsInitialized (void) const |
| Check if the object has been initialized. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
| SimpleRefCount () | |
| Default constructor. More... | |
| SimpleRefCount (const SimpleRefCount &o) | |
| Copy constructor. More... | |
| uint32_t | GetReferenceCount (void) const |
| Get the reference count of the object. More... | |
| SimpleRefCount & | operator= (const SimpleRefCount &o) |
| Assignment operator. More... | |
| void | Ref (void) const |
| Increment the reference count. More... | |
| void | Unref (void) const |
| Decrement the reference count. More... | |
Public Member Functions inherited from ns3::ObjectBase | |
| virtual | ~ObjectBase () |
| Virtual destructor. More... | |
| void | GetAttribute (std::string name, AttributeValue &value) const |
| Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
| bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
| Get the value of an attribute without raising erros. More... | |
| void | SetAttribute (std::string name, const AttributeValue &value) |
| Set a single attribute, raising fatal errors if unsuccessful. More... | |
| bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
| Set a single attribute without raising errors. More... | |
| bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
| Connect a TraceSource to a Callback with a context. More... | |
| bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
| Connect a TraceSource to a Callback without a context. More... | |
| bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
| Disconnect from a TraceSource a Callback previously connected with a context. More... | |
| bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
| Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Private Types | |
| typedef std::list< struct ExpectedCollision > | ExpectedCollisions |
| expected collisions 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 Attributes | |
| ExpectedCollisions | m_expectedCollision |
| expected collision More... | |
| ExpectedGrants | m_expectedGrants |
| expected grants More... | |
| ExpectedCollisions | m_expectedInternalCollision |
| expected internal collisions More... | |
Friends | |
| class | DcfManagerTest |
| allow DcfManagerTest class access More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ns3::DcfState | |
| static TypeId | GetTypeId (void) |
| Get the type ID. More... | |
Static Public Member Functions inherited from ns3::Object | |
| static TypeId | GetTypeId (void) |
| Register this type. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
| static TypeId | GetTypeId (void) |
| Get the type ID. More... | |
Protected Member Functions inherited from ns3::DcfState | |
| void | DoDispose (void) |
| Destructor implementation. More... | |
| uint32_t | GetBackoffSlots (void) const |
| Return the current number of backoff slots. More... | |
| Time | GetBackoffStart (void) const |
| Return the time when the backoff procedure started. More... | |
| void | NotifyAccessGranted (void) |
| Notify that access has been granted. More... | |
| void | NotifyAccessRequested (void) |
| Notify that access request has been received. More... | |
| void | NotifyChannelSwitching (void) |
| Notify that the device is switching channel. More... | |
| void | NotifyCollision (void) |
| Notify that collision has occurred. More... | |
| void | NotifyInternalCollision (void) |
| Notify that internal collision has occurred. More... | |
| void | NotifySleep (void) |
| Notify that the device has started to sleep. More... | |
| void | NotifyWakeUp (void) |
| Notify that the device has started to wake up. More... | |
| void | UpdateBackoffSlotsNow (uint32_t nSlots, Time backoffUpdateBound) |
| Update backoff slots that nSlots has passed. More... | |
Protected Member Functions inherited from ns3::Object | |
| Object (const Object &o) | |
| Copy an Object. More... | |
| virtual void | DoInitialize (void) |
| Initialize() implementation. More... | |
| virtual void | NotifyNewAggregate (void) |
| Notify all Objects aggregated to this one of a new Object being aggregated. More... | |
Protected Member Functions inherited from ns3::ObjectBase | |
| void | ConstructSelf (const AttributeConstructionList &attributes) |
| Complete construction of ObjectBase; invoked by derived classes. More... | |
| virtual void | NotifyConstructionCompleted (void) |
| Notifier called once the ObjectBase is fully constructed. More... | |
Protected Attributes inherited from ns3::DcfState | |
| bool | m_accessRequested |
| flag whether channel access is already requested More... | |
| uint32_t | m_aifsn |
| the AIFSN More... | |
| uint32_t | m_backoffSlots |
| the backoff slots More... | |
| Time | m_backoffStart |
| the backoffStart variable is used to keep track of the time at which a backoff was started or the time at which the backoff counter was last updated. More... | |
| uint32_t | m_cw |
| the current CW More... | |
| uint32_t | m_cwMax |
| the CW maximum More... | |
| uint32_t | m_cwMin |
| the CW minimum More... | |
| Ptr< DcaTxop > | m_txop |
| the DCA TXOP More... | |
| Time | m_txopLimit |
| the txop limit time More... | |
Related Functions inherited from ns3::ObjectBase | |
| static TypeId | GetObjectIid (void) |
| Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
Dcf State Test.
Definition at line 37 of file dcf-manager-test.cc.
|
private |
expected collisions typedef
Definition at line 66 of file dcf-manager-test.cc.
|
private |
the expected grant typedef
Definition at line 58 of file dcf-manager-test.cc.
|
private |
the collection of expected grants typedef
Definition at line 59 of file dcf-manager-test.cc.
| void DcfStateTest::QueueTx | ( | uint64_t | txTime, |
| uint64_t | expectedGrantTime | ||
| ) |
Queue transmit function.
| txTime | the transmit time |
| expectedGrantTime | the expected grant time |
Definition at line 280 of file dcf-manager-test.cc.
References m_expectedGrants.
Referenced by DcfManagerTest::DoAccessRequest().
Here is the caller graph for this function:
|
friend |
allow DcfManagerTest class access
Definition at line 56 of file dcf-manager-test.cc.
|
private |
expected collision
Definition at line 69 of file dcf-manager-test.cc.
Referenced by DcfManagerTest::EndTest(), DcfManagerTest::ExpectCollision(), and DcfManagerTest::NotifyCollision().
|
private |
expected grants
Definition at line 70 of file dcf-manager-test.cc.
Referenced by DcfManagerTest::EndTest(), DcfManagerTest::NotifyAccessGranted(), DcfManagerTest::NotifyChannelSwitching(), and QueueTx().
|
private |
expected internal collisions
Definition at line 68 of file dcf-manager-test.cc.
Referenced by DcfManagerTest::EndTest(), DcfManagerTest::ExpectInternalCollision(), and DcfManagerTest::NotifyInternalCollision().