A Discrete-Event Network Simulator
API
DcfStateTest Class Reference

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...
 
SimpleRefCountoperator= (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 ExpectedCollisionExpectedCollisions
 expected collisions typedef More...
 
typedef std::pair< uint64_t, uint64_t > ExpectedGrant
 the expected grant typedef More...
 
typedef std::list< ExpectedGrantExpectedGrants
 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< DcaTxopm_txop
 the DCA TXOP More...
 
Time m_txopLimit
 the txop limit time More...
 

Detailed Description

Dcf State Test.

Definition at line 37 of file dcf-manager-test.cc.

Member Typedef Documentation

expected collisions typedef

Definition at line 66 of file dcf-manager-test.cc.

typedef std::pair<uint64_t,uint64_t> DcfStateTest::ExpectedGrant
private

the expected grant typedef

Definition at line 58 of file dcf-manager-test.cc.

the collection of expected grants typedef

Definition at line 59 of file dcf-manager-test.cc.

Constructor & Destructor Documentation

DcfStateTest::DcfStateTest ( Ptr< DcaTxop dca)

Constructor.

Parameters
dcathe DCA TXOP

Definition at line 274 of file dcf-manager-test.cc.

Member Function Documentation

void DcfStateTest::QueueTx ( uint64_t  txTime,
uint64_t  expectedGrantTime 
)

Queue transmit function.

Parameters
txTimethe transmit time
expectedGrantTimethe 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:

Friends And Related Function Documentation

friend class DcfManagerTest
friend

allow DcfManagerTest class access

Definition at line 56 of file dcf-manager-test.cc.

Member Data Documentation

ExpectedCollisions DcfStateTest::m_expectedCollision
private
ExpectedGrants DcfStateTest::m_expectedGrants
private
ExpectedCollisions DcfStateTest::m_expectedInternalCollision
private

The documentation for this class was generated from the following file: